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, 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 TextChannelUpdateNameEvent(JDA api, long responseNumber, TextChannel channel, java.lang.String oldName)