Class VoiceChannelUpdatePermissionsEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.channel.voice.GenericVoiceChannelEvent
-
- net.dv8tion.jda.api.events.channel.voice.update.VoiceChannelUpdatePermissionsEvent
-
- All Implemented Interfaces:
GenericEvent
public class VoiceChannelUpdatePermissionsEvent extends GenericVoiceChannelEvent
Indicates that aVoiceChannel's permission overrides changed.Can be used to get affected VoiceChannel, affected Guild and affected
Roles/Users.
-
-
Constructor Summary
Constructors Constructor Description VoiceChannelUpdatePermissionsEvent(JDA api, long responseNumber, VoiceChannel channel, List<IPermissionHolder> changed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Member>getChangedMembers()List of affectedMembersList<IPermissionHolder>getChangedPermissionHolders()The affectedIPermissionHoldersList<Role>getChangedRoles()List of affectedRoles-
Methods inherited from class net.dv8tion.jda.api.events.channel.voice.GenericVoiceChannelEvent
getChannel, getGuild
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-
-
-
Constructor Detail
-
VoiceChannelUpdatePermissionsEvent
public VoiceChannelUpdatePermissionsEvent(@Nonnull JDA api, long responseNumber, @Nonnull VoiceChannel channel, @Nonnull List<IPermissionHolder> changed)
-
-
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
-
-