UpdateEvent<Role,java.util.List<Permission>>
public class RoleUpdatePermissionsEvent extends GenericRoleUpdateEvent<java.util.List<Permission>>
Role
updated its permissions.
Can be used to retrieve the old permissions.
Identifier: permission
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
IDENTIFIER |
Constructor | Description |
---|---|
RoleUpdatePermissionsEvent(JDA api,
long responseNumber,
Role role,
long oldPermissionsRaw) |
Modifier and Type | Method | Description |
---|---|---|
java.util.List<Permission> |
getNewPermissions() |
The new permissions
|
long |
getNewPermissionsRaw() |
The new permissions
|
java.util.List<Permission> |
getOldPermissions() |
The old permissions
|
long |
getOldPermissionsRaw() |
The old permissions
|
getJDA, getResponseNumber
getGuild, getRole
getEntity, getNewValue, getOldValue, getPropertyIdentifier, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEntityType
public static final java.lang.String IDENTIFIER
public java.util.List<Permission> getOldPermissions()
public long getOldPermissionsRaw()
public java.util.List<Permission> getNewPermissions()
public long getNewPermissionsRaw()