Class StoreChannelUpdatePermissionsEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.channel.store.GenericStoreChannelEvent
-
- net.dv8tion.jda.api.events.channel.store.update.StoreChannelUpdatePermissionsEvent
-
- All Implemented Interfaces:
GenericEvent
public class StoreChannelUpdatePermissionsEvent extends GenericStoreChannelEvent
Indicates that aStoreChannel
's permission overrides changed.Can be use to detect when a StoreChannel's permission overrides change and get affected
Roles
/Members
.
-
-
Constructor Summary
Constructors Constructor Description StoreChannelUpdatePermissionsEvent(JDA api, long responseNumber, StoreChannel channel, List<IPermissionHolder> permHolders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Member>
getChangedMembers()
List of affectedMembers
List<IPermissionHolder>
getChangedPermissionHolders()
The affectedIPermissionHolders
List<Role>
getChangedRoles()
List of affectedRoles
-
Methods inherited from class net.dv8tion.jda.api.events.channel.store.GenericStoreChannelEvent
getChannel
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-
-
-
Constructor Detail
-
StoreChannelUpdatePermissionsEvent
public StoreChannelUpdatePermissionsEvent(@Nonnull JDA api, long responseNumber, @Nonnull StoreChannel channel, List<IPermissionHolder> permHolders)
-
-
Method Detail
-
getChangedPermissionHolders
@Nonnull public List<IPermissionHolder> getChangedPermissionHolders()
The affectedIPermissionHolders
- Returns:
- The affected permission holders
- See Also:
getChangedRoles()
,getChangedMembers()
-
getChangedRoles
@Nonnull public List<Role> getChangedRoles()
List of affectedRoles
- Returns:
- List of affected roles
-
-