UpdateEvent<TextChannel,java.lang.String>
public class TextChannelUpdateTopicEvent extends GenericTextChannelUpdateEvent<java.lang.String>
TextChannel
's topic changed.
Can be used to detect when a TextChannel topic changes and get its previous topic.
Identifier: topic
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
IDENTIFIER |
Constructor | Description |
---|---|
TextChannelUpdateTopicEvent(JDA api,
long responseNumber,
TextChannel channel,
java.lang.String oldTopic) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getNewTopic() |
The new topic
|
java.lang.String |
getOldTopic() |
The old topic
|
getJDA, getResponseNumber
getChannel, getGuild
getEntity, getNewValue, getOldValue, getPropertyIdentifier, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEntityType
public static final java.lang.String IDENTIFIER
public TextChannelUpdateTopicEvent(JDA api, long responseNumber, TextChannel channel, java.lang.String oldTopic)