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<String>
-
- net.dv8tion.jda.api.events.channel.text.update.TextChannelUpdateTopicEvent
-
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<TextChannel,String>
public class TextChannelUpdateTopicEvent extends GenericTextChannelUpdateEvent<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 String
IDENTIFIER
-
Constructor Summary
Constructors Constructor Description TextChannelUpdateTopicEvent(JDA api, long responseNumber, TextChannel channel, String oldTopic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNewTopic()
The new topicString
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 String IDENTIFIER
- See Also:
- Constant Field Values
-
-