UpdateEvent<Role,java.lang.Integer>public class RoleUpdatePositionEvent extends GenericRoleUpdateEvent<java.lang.Integer>
Role updated its position.
Can be used to retrieve the old position.
Identifier: position
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
IDENTIFIER |
| Constructor | Description |
|---|---|
RoleUpdatePositionEvent​(JDA api,
long responseNumber,
Role role,
int oldPosition,
int oldPositionRaw) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getNewPosition() |
The new position
|
int |
getNewPositionRaw() |
The new position
|
int |
getOldPosition() |
The old position
|
int |
getOldPositionRaw() |
The old position
|
getJDA, getResponseNumbergetGuild, getRolegetEntity, getNewValue, getOldValue, getPropertyIdentifier, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEntityTypepublic static final java.lang.String IDENTIFIER
public int getOldPosition()
public int getOldPositionRaw()
public int getNewPosition()
public int getNewPositionRaw()