Class GenericPermissionOverrideEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.guild.GenericGuildEvent
net.dv8tion.jda.api.events.guild.override.GenericPermissionOverrideEvent
- All Implemented Interfaces:
- GenericEvent
- Direct Known Subclasses:
- PermissionOverrideCreateEvent,- PermissionOverrideDeleteEvent,- PermissionOverrideUpdateEvent
Indicates that a 
Every guild channel override event is a subclass of this event and can be casted
PermissionOverride for a GuildChannel was created, deleted, or updated.
 Every guild channel override event is a subclass of this event and can be casted
Can be used to detect that any guild channel override event was fired
- 
Constructor SummaryConstructorsConstructorDescriptionGenericPermissionOverrideEvent(JDA api, long responseNumber, IPermissionContainer channel, PermissionOverride override) 
- 
Method SummaryModifier and TypeMethodDescriptionTheguild channelthis override belongs to.TheChannelTypeof theGuildChannelthis override belongs to.TheMemberfor the override.TheIPermissionHolderfor the override.The affectedPermissionOverridethat was updated.getRole()TheRolefor the override.booleanWhether this override was for a member.booleanWhether this override was for a role.Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEventgetGuildMethods inherited from class net.dv8tion.jda.api.events.EventgetJDA, getRawData, getResponseNumber, toString
- 
Constructor Details- 
GenericPermissionOverrideEventpublic GenericPermissionOverrideEvent(@Nonnull JDA api, long responseNumber, @Nonnull IPermissionContainer channel, @Nonnull PermissionOverride override) 
 
- 
- 
Method Details- 
getChannelTypeTheChannelTypeof theGuildChannelthis override belongs to.- Returns:
- The ChannelType
 
- 
getChannelTheguild channelthis override belongs to.- Returns:
- The channel
 
- 
getPermissionOverrideThe affectedPermissionOverridethat was updated.- Returns:
- The override
 
- 
isRoleOverridepublic boolean isRoleOverride()Whether this override was for a role.
 This meansgetRole()is likely not null.- Returns:
- True, if this override is for a role
 
- 
isMemberOverridepublic boolean isMemberOverride()Whether this override was for a member.
 Note thatgetMember()might still be null if the member isn't cached or there is a discord inconsistency.- Returns:
- True, if this override is for a member
 
- 
getPermissionHolderTheIPermissionHolderfor the override.
 This can be aMemberorRole. If the role or member are not cached then this will be null.- Returns:
- Possibly-null permission holder
 
- 
getMemberTheMemberfor the override.
 This can be null if the member is not cached or there is a discord inconsistency.- Returns:
- Possibly-null member
 
- 
getRoleTheRolefor the override.- Returns:
- Possibly-null role
 
 
-