Class PermissionOverrideUpdateEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.guild.GenericGuildEvent
net.dv8tion.jda.api.events.guild.override.GenericPermissionOverrideEvent
net.dv8tion.jda.api.events.guild.override.PermissionOverrideUpdateEvent
- All Implemented Interfaces:
GenericEvent
Indicates that a
PermissionOverride
in a guild channel
has been updated.
Can be used to retrieve the updated override and old allow
and deny
.
-
Constructor Summary
ConstructorDescriptionPermissionOverrideUpdateEvent
(JDA api, long responseNumber, IPermissionContainer channel, PermissionOverride override, long oldAllow, long oldDeny) -
Method Summary
Modifier and TypeMethodDescriptionThe old allowed permissionslong
The old allowed permissions as a raw bitmask.The old denied permissionslong
The old denied permissions as a raw bitmask.The old inherited permissionslong
The old inherited permissions as a raw bitmask.Methods inherited from class net.dv8tion.jda.api.events.guild.override.GenericPermissionOverrideEvent
getChannel, getChannelType, getMember, getPermissionHolder, getPermissionOverride, getRole, isMemberOverride, isRoleOverride
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
-
Constructor Details
-
PermissionOverrideUpdateEvent
public PermissionOverrideUpdateEvent(@Nonnull JDA api, long responseNumber, @Nonnull IPermissionContainer channel, @Nonnull PermissionOverride override, long oldAllow, long oldDeny)
-
-
Method Details
-
getOldAllowRaw
public long getOldAllowRaw()The old allowed permissions as a raw bitmask.- Returns:
- The old allowed permissions
-
getOldDenyRaw
public long getOldDenyRaw()The old denied permissions as a raw bitmask.- Returns:
- The old denied permissions
-
getOldInheritedRaw
public long getOldInheritedRaw()The old inherited permissions as a raw bitmask.- Returns:
- The old inherited permissions
-
getOldAllow
The old allowed permissions- Returns:
- The old allowed permissions
-
getOldDeny
The old denied permissions- Returns:
- The old denied permissions
-
getOldInherited
The old inherited permissions- Returns:
- The old inherited permissions
-