Class TextChannelUpdateTopicEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.channel.text.GenericTextChannelEvent
-
- net.dv8tion.jda.api.events.channel.text.update.GenericTextChannelUpdateEvent<java.lang.String>
-
- net.dv8tion.jda.api.events.channel.text.update.TextChannelUpdateTopicEvent
-
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<TextChannel,java.lang.String>
public class TextChannelUpdateTopicEvent extends GenericTextChannelUpdateEvent<java.lang.String>
Indicates that aTextChannel
's topic changed.Can be used to detect when a TextChannel topic changes and get its previous topic.
Identifier:
topic
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IDENTIFIER
-
Constructor Summary
Constructors Constructor Description TextChannelUpdateTopicEvent(JDA api, long responseNumber, TextChannel channel, java.lang.String oldTopic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getNewTopic()
The new topicjava.lang.String
getOldTopic()
The old topic-
Methods inherited from class net.dv8tion.jda.api.events.channel.text.update.GenericTextChannelUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifier, toString
-
Methods inherited from class net.dv8tion.jda.api.events.channel.text.GenericTextChannelEvent
getChannel, getGuild
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.dv8tion.jda.api.events.GenericEvent
getJDA, getResponseNumber
-
Methods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntityType
-
-
-
-
Field Detail
-
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TextChannelUpdateTopicEvent
public TextChannelUpdateTopicEvent(@Nonnull JDA api, long responseNumber, @Nonnull TextChannel channel, @Nullable java.lang.String oldTopic)
-
-