Class GuildVoiceUpdateEvent
- java.lang.Object
-
- net.dv8tion.jda.core.events.Event
-
- net.dv8tion.jda.core.events.guild.GenericGuildEvent
-
- net.dv8tion.jda.core.events.guild.voice.GenericGuildVoiceEvent
-
- net.dv8tion.jda.core.events.guild.voice.GuildVoiceUpdateEvent
-
- Direct Known Subclasses:
GuildVoiceLeaveEvent
,GuildVoiceMoveEvent
public class GuildVoiceUpdateEvent extends GenericGuildVoiceEvent
Indicates that aMember
that was previously connected to aVoiceChannel
left the previously connected Channel.
Generic event that combinesGuildVoiceLeaveEvent
andGuildVoiceMoveEvent
for convenience.Can be used to detect when a Member leaves a channel in any way
-
-
Constructor Summary
Constructors Constructor Description GuildVoiceUpdateEvent(JDA api, long responseNumber, Member member, VoiceChannel oldChannel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoiceChannel
getChannelLeft()
TheVoiceChannel
that theMember
is moved from-
Methods inherited from class net.dv8tion.jda.core.events.guild.voice.GenericGuildVoiceEvent
getMember, getVoiceState
-
Methods inherited from class net.dv8tion.jda.core.events.guild.GenericGuildEvent
getGuild
-
Methods inherited from class net.dv8tion.jda.core.events.Event
getJDA, getResponseNumber
-
-
-
-
Constructor Detail
-
GuildVoiceUpdateEvent
public GuildVoiceUpdateEvent(JDA api, long responseNumber, Member member, VoiceChannel oldChannel)
-
-
Method Detail
-
getChannelLeft
public VoiceChannel getChannelLeft()
TheVoiceChannel
that theMember
is moved from- Returns:
- The
VoiceChannel
-
-