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