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
public class PermissionOverrideUpdateEvent extends GenericPermissionOverrideEvent
Indicates that aPermissionOverride
of aGuildChannel
has been updated.Can be used to retrieve the updated override and old
allow
anddeny
.
-
-
Constructor Summary
Constructors Constructor Description PermissionOverrideUpdateEvent(JDA api, long responseNumber, GuildChannel channel, PermissionOverride override, long oldAllow, long oldDeny)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.EnumSet<Permission>
getOldAllow()
The old allowed permissionslong
getOldAllowRaw()
The old allowed permissions as a raw bitmask.java.util.EnumSet<Permission>
getOldDeny()
The old denied permissionslong
getOldDenyRaw()
The old denied permissions as a raw bitmask.java.util.EnumSet<Permission>
getOldInherited()
The old inherited permissionslong
getOldInheritedRaw()
The old inherited permissions as a raw bitmask.-
Methods inherited from class net.dv8tion.jda.api.events.guild.override.GenericPermissionOverrideEvent
getCategory, getChannel, getChannelType, getMember, getPermissionHolder, getPermissionOverride, getRole, getStoreChannel, getTextChannel, getVoiceChannel, 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, getResponseNumber
-
-
-
-
Constructor Detail
-
PermissionOverrideUpdateEvent
public PermissionOverrideUpdateEvent(@Nonnull JDA api, long responseNumber, @Nonnull GuildChannel channel, @Nonnull PermissionOverride override, long oldAllow, long oldDeny)
-
-
Method Detail
-
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
@Nonnull public java.util.EnumSet<Permission> getOldAllow()
The old allowed permissions- Returns:
- The old allowed permissions
-
getOldDeny
@Nonnull public java.util.EnumSet<Permission> getOldDeny()
The old denied permissions- Returns:
- The old denied permissions
-
getOldInherited
@Nonnull public java.util.EnumSet<Permission> getOldInherited()
The old inherited permissions- Returns:
- The old inherited permissions
-
-