Class GenericVoiceChannelEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.channel.voice.GenericVoiceChannelEvent
-
- All Implemented Interfaces:
GenericEvent
- Direct Known Subclasses:
GenericVoiceChannelUpdateEvent,VoiceChannelCreateEvent,VoiceChannelDeleteEvent,VoiceChannelUpdatePermissionsEvent
public abstract class GenericVoiceChannelEvent extends Event
Indicates that aVoiceChannelevent was fired.
Every VoiceChannelEvent is derived from this event and can be casted.Can be used to detect any VoiceChannelEvent.
-
-
Constructor Summary
Constructors Constructor Description GenericVoiceChannelEvent(JDA api, long responseNumber, VoiceChannel channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoiceChannelgetChannel()TheVoiceChannelGuildgetGuild()-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
-
-
-
Constructor Detail
-
GenericVoiceChannelEvent
public GenericVoiceChannelEvent(@Nonnull JDA api, long responseNumber, @Nonnull VoiceChannel channel)
-
-
Method Detail
-
getChannel
@Nonnull public VoiceChannel getChannel()
TheVoiceChannel- Returns:
- The VoiceChannel
-
getGuild
@Nonnull public Guild getGuild()
- Returns:
- The Guild
-
-