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, getResponseNumbergetChannel, getGuildgetEntity, getNewValue, getOldValue, getPropertyIdentifier, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEntityTypepublic static final java.lang.String IDENTIFIER
public TextChannelUpdateTopicEvent(JDA api, long responseNumber, TextChannel channel, java.lang.String oldTopic)