Class CategoryUpdatePermissionsEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.channel.category.GenericCategoryEvent
-
- net.dv8tion.jda.api.events.channel.category.update.CategoryUpdatePermissionsEvent
-
- All Implemented Interfaces:
GenericEvent
@Deprecated @ForRemoval(deadline="4.4.0") @DeprecatedSince("4.2.0") public class CategoryUpdatePermissionsEvent extends GenericCategoryEvent
Deprecated.This event is no longer feasible due to members not being cached by default. We replaced this event withGenericPermissionOverrideEvent
and derivatives.Indicates that the permissions of aCategory
were updated.Can be used to retrieve the changed permissions
-
-
Constructor Summary
Constructors Constructor Description CategoryUpdatePermissionsEvent(JDA api, long responseNumber, Category category, java.util.List<IPermissionHolder> changed)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<Member>
getChangedMembers()
Deprecated.Filtered list of affectedMembers
java.util.List<IPermissionHolder>
getChangedPermissionHolders()
Deprecated.List of all affectedIPermissionHolders
java.util.List<Role>
getChangedRoles()
Deprecated.Filtered list of affectedRoles
-
Methods inherited from class net.dv8tion.jda.api.events.channel.category.GenericCategoryEvent
getCategory, getGuild, getId, getIdLong
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-
-
-
Constructor Detail
-
CategoryUpdatePermissionsEvent
public CategoryUpdatePermissionsEvent(@Nonnull JDA api, long responseNumber, @Nonnull Category category, @Nonnull java.util.List<IPermissionHolder> changed)
Deprecated.
-
-
Method Detail
-
getChangedPermissionHolders
@Nonnull public java.util.List<IPermissionHolder> getChangedPermissionHolders()
Deprecated.List of all affectedIPermissionHolders
- Returns:
- Immutable list of permission holders affected by this event
-
getChangedRoles
@Nonnull public java.util.List<Role> getChangedRoles()
Deprecated.Filtered list of affectedRoles
- Returns:
- Immutable list of affected roles
-
-