Class GenericVoiceChannelEvent
- java.lang.Object
-
- net.dv8tion.jda.core.events.Event
-
- net.dv8tion.jda.core.events.channel.voice.GenericVoiceChannelEvent
-
- Direct Known Subclasses:
GenericVoiceChannelUpdateEvent
,VoiceChannelCreateEvent
,VoiceChannelDeleteEvent
,VoiceChannelUpdatePermissionsEvent
public abstract class GenericVoiceChannelEvent extends Event
Indicates that aVoiceChannel
event 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 VoiceChannel
getChannel()
TheVoiceChannel
Guild
getGuild()
-
Methods inherited from class net.dv8tion.jda.core.events.Event
getJDA, getResponseNumber
-
-
-
-
Constructor Detail
-
GenericVoiceChannelEvent
public GenericVoiceChannelEvent(JDA api, long responseNumber, VoiceChannel channel)
-
-
Method Detail
-
getChannel
public VoiceChannel getChannel()
TheVoiceChannel
- Returns:
- The VoiceChannel
-
getGuild
public Guild getGuild()
- Returns:
- The Guild
-
-