UpdateEvent<TextChannel,java.lang.Integer>
public class TextChannelUpdatePositionEvent extends GenericTextChannelUpdateEvent<java.lang.Integer>
TextChannel
's position changed.
Can be used to detect when a TextChannel position changes and get its previous position.
Identifier: position
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
IDENTIFIER |
Constructor | Description |
---|---|
TextChannelUpdatePositionEvent(JDA api,
long responseNumber,
TextChannel channel,
int oldPosition) |
Modifier and Type | Method | Description |
---|---|---|
int |
getNewPosition() |
The new position
|
int |
getOldPosition() |
The old position
|
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 TextChannelUpdatePositionEvent(JDA api, long responseNumber, TextChannel channel, int oldPosition)