Class TextChannelUpdatePermissionsEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.channel.text.GenericTextChannelEvent
-
- net.dv8tion.jda.api.events.channel.text.update.TextChannelUpdatePermissionsEvent
-
- All Implemented Interfaces:
GenericEvent
@Deprecated @ForRemoval(deadline="4.4.0") @DeprecatedSince("4.2.0") public class TextChannelUpdatePermissionsEvent extends GenericTextChannelEvent
Deprecated.This event is no longer feasible due to members not being cached by default. We replaced this event withGenericPermissionOverrideEvent
and derivatives.Indicates that aTextChannel
's permission overrides changed.Can be use to detect when a TextChannel's permission overrides change and get affected
Roles
/Users
.
-
-
Constructor Summary
Constructors Constructor Description TextChannelUpdatePermissionsEvent(JDA api, long responseNumber, TextChannel 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.text.GenericTextChannelEvent
getChannel, getGuild
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-
-
-
Constructor Detail
-
TextChannelUpdatePermissionsEvent
public TextChannelUpdatePermissionsEvent(@Nonnull JDA api, long responseNumber, @Nonnull TextChannel channel, @Nonnull 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
-
-