Class TextChannelUpdateNameEvent

  • All Implemented Interfaces:
    UpdateEvent<TextChannel,​java.lang.String>

    public class TextChannelUpdateNameEvent
    extends GenericTextChannelUpdateEvent<java.lang.String>
    Indicates that a TextChannel's name changed.

    Can be used to detect when a TextChannel name changes and get its previous name.

    Identifier: name

    • Constructor Detail

      • TextChannelUpdateNameEvent

        public TextChannelUpdateNameEvent​(JDA api,
                                          long responseNumber,
                                          TextChannel channel,
                                          java.lang.String oldName)
    • Method Detail

      • getOldName

        public java.lang.String getOldName()
        The old name
        Returns:
        The old name
      • getNewName

        public java.lang.String getNewName()
        The new name
        Returns:
        The new name