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
public class TextChannelUpdatePermissionsEvent extends GenericTextChannelEvent
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, 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.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 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
-
-