Class TextChannelUpdateTopicEvent

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

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

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

    Identifier: topic

    • Constructor Detail

      • TextChannelUpdateTopicEvent

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

      • getOldTopic

        public java.lang.String getOldTopic()
        The old topic
        Returns:
        The old topic, or null
      • getNewTopic

        public java.lang.String getNewTopic()
        The new topic
        Returns:
        The new topic, or null