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
@Deprecated @ForRemoval(deadline="4.4.0") @DeprecatedSince("4.2.0") public class StoreChannelUpdatePermissionsEvent extends GenericStoreChannelEvent
Deprecated.This event is no longer feasible due to members not being cached by default. We replaced this event withGenericPermissionOverrideEvent
and derivatives.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, java.util.List<IPermissionHolder> permHolders)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<Member>
getChangedMembers()
Deprecated.List of affectedMembers
java.util.List<IPermissionHolder>
getChangedPermissionHolders()
Deprecated.The affectedIPermissionHolders
java.util.List<Role>
getChangedRoles()
Deprecated.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, java.util.List<IPermissionHolder> permHolders)
Deprecated.
-
-
Method Detail
-
getChangedPermissionHolders
@Nonnull public java.util.List<IPermissionHolder> getChangedPermissionHolders()
Deprecated.The affectedIPermissionHolders
- Returns:
- The affected permission holders
- See Also:
getChangedRoles()
,getChangedMembers()
-
getChangedRoles
@Nonnull public java.util.List<Role> getChangedRoles()
Deprecated.List of affectedRoles
- Returns:
- List of affected roles
-
-