UpdateEvent<TextChannel,java.lang.String>public class TextChannelUpdateNameEvent extends GenericTextChannelUpdateEvent<java.lang.String>
TextChannel's name changed.
Can be used to detect when a TextChannel name changes and get its previous name.
Identifier: name
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
IDENTIFIER |
| Constructor | Description |
|---|---|
TextChannelUpdateNameEvent(JDA api,
long responseNumber,
TextChannel channel,
java.lang.String oldName) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getNewName() |
The new name
|
java.lang.String |
getOldName() |
The old name
|
getJDA, getResponseNumbergetChannel, getGuildgetEntity, getNewValue, getOldValue, getPropertyIdentifier, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEntityTypepublic static final java.lang.String IDENTIFIER
public TextChannelUpdateNameEvent(JDA api, long responseNumber, TextChannel channel, java.lang.String oldName)