Class GuildVoiceLeaveEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.guild.GenericGuildEvent
-
- net.dv8tion.jda.api.events.guild.voice.GenericGuildVoiceEvent
-
- net.dv8tion.jda.api.events.guild.voice.GenericGuildVoiceUpdateEvent
-
- net.dv8tion.jda.api.events.guild.voice.GuildVoiceLeaveEvent
-
- All Implemented Interfaces:
GenericEvent
,GuildVoiceUpdateEvent
,UpdateEvent<Member,VoiceChannel>
public class GuildVoiceLeaveEvent extends GenericGuildVoiceUpdateEvent
Indicates that aMember
disconnected from aVoiceChannel
.When the
Member
is moved aGuildVoiceMoveEvent
is fired insteadCan be used to detect when a member leaves a voice channel completely.
- See Also:
GuildVoiceUpdateEvent
-
-
Field Summary
-
Fields inherited from interface net.dv8tion.jda.api.events.guild.voice.GuildVoiceUpdateEvent
IDENTIFIER
-
-
Constructor Summary
Constructors Constructor Description GuildVoiceLeaveEvent(JDA api, long responseNumber, Member member, VoiceChannel channelLeft)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoiceChannel
getChannelLeft()
TheVoiceChannel
that theMember
is moved fromVoiceChannel
getOldValue()
The old value-
Methods inherited from class net.dv8tion.jda.api.events.guild.voice.GenericGuildVoiceUpdateEvent
getChannelJoined, getEntity, getNewValue, getPropertyIdentifier, toString
-
Methods inherited from class net.dv8tion.jda.api.events.guild.voice.GenericGuildVoiceEvent
getMember, getVoiceState
-
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.dv8tion.jda.api.events.GenericEvent
getJDA, getResponseNumber
-
Methods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntityType
-
-
-
-
Method Detail
-
getChannelLeft
@Nonnull public VoiceChannel getChannelLeft()
Description copied from interface:GuildVoiceUpdateEvent
TheVoiceChannel
that theMember
is moved from- Specified by:
getChannelLeft
in interfaceGuildVoiceUpdateEvent
- Overrides:
getChannelLeft
in classGenericGuildVoiceUpdateEvent
- Returns:
- The
VoiceChannel
-
getOldValue
@Nonnull public VoiceChannel getOldValue()
Description copied from interface:UpdateEvent
The old value- Specified by:
getOldValue
in interfaceUpdateEvent<Member,VoiceChannel>
- Overrides:
getOldValue
in classGenericGuildVoiceUpdateEvent
- Returns:
- The old value
-
-