Class RoleUpdatePermissionsEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.role.GenericRoleEvent
net.dv8tion.jda.api.events.role.update.GenericRoleUpdateEvent<EnumSet<Permission>>
net.dv8tion.jda.api.events.role.update.RoleUpdatePermissionsEvent
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<Role,
EnumSet<Permission>>
Indicates that a
Role
updated its permissions.
Can be used to retrieve the old permissions.
Identifier: permission
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRoleUpdatePermissionsEvent
(JDA api, long responseNumber, Role role, long oldPermissionsRaw) -
Method Summary
Modifier and TypeMethodDescriptionThe new permissionslong
The new permissionsThe new valueThe old permissionslong
The old permissionsThe old valueMethods inherited from class net.dv8tion.jda.api.events.role.update.GenericRoleUpdateEvent
getEntity, getPropertyIdentifier
Methods inherited from class net.dv8tion.jda.api.events.role.GenericRoleEvent
getGuild, getRole
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.events.GenericEvent
getJDA, getRawData, getResponseNumber
Methods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntityType
-
Field Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
RoleUpdatePermissionsEvent
-
-
Method Details
-
getOldPermissions
The old permissions- Returns:
- The old permissions
-
getOldPermissionsRaw
public long getOldPermissionsRaw()The old permissions- Returns:
- The old permissions
-
getNewPermissions
The new permissions- Returns:
- The new permissions
-
getNewPermissionsRaw
public long getNewPermissionsRaw()The new permissions- Returns:
- The new permissions
-
getOldValue
Description copied from interface:UpdateEvent
The old value- Specified by:
getOldValue
in interfaceUpdateEvent<Role,
EnumSet<Permission>> - Overrides:
getOldValue
in classGenericRoleUpdateEvent<EnumSet<Permission>>
- Returns:
- The old value
-
getNewValue
Description copied from interface:UpdateEvent
The new value- Specified by:
getNewValue
in interfaceUpdateEvent<Role,
EnumSet<Permission>> - Overrides:
getNewValue
in classGenericRoleUpdateEvent<EnumSet<Permission>>
- Returns:
- The new value
-