Class GuildVoiceMoveEvent
- 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.GuildVoiceMoveEvent
 
 
 
 
 
- 
- All Implemented Interfaces:
- GenericEvent,- GuildVoiceUpdateEvent,- UpdateEvent<Member,VoiceChannel>
 
 public class GuildVoiceMoveEvent extends GenericGuildVoiceUpdateEvent Indicates that aMembermoves betweenVoiceChannels.When the Memberis leaving aGuildVoiceLeaveEventis fired insteadCan be used to detect when a member moves from one voice channel to another in the same guild. RequirementsThis event requires the VOICE_STATECacheFlag to be enabled, which requires theGUILD_VOICE_STATESintent.createLight(String)disables that CacheFlag by default!Additionally, this event requires the MemberCachePolicyto cache the updated members. Discord does not specifically tell us about the updates, but merely tells us the member was updated and gives us the updated member object. In order to fire a specific event like this we need to have the old member cached to compare against.- See Also:
- GuildVoiceUpdateEvent
 
- 
- 
Field Summary- 
Fields inherited from interface net.dv8tion.jda.api.events.guild.voice.GuildVoiceUpdateEventIDENTIFIER
 
- 
 - 
Constructor SummaryConstructors Constructor Description GuildVoiceMoveEvent(JDA api, long responseNumber, Member member, VoiceChannel channelLeft)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description VoiceChannelgetChannelJoined()TheVoiceChannelthat was joinedVoiceChannelgetChannelLeft()TheVoiceChannelthat theMemberis moved fromVoiceChannelgetNewValue()The new valueVoiceChannelgetOldValue()The old value- 
Methods inherited from class net.dv8tion.jda.api.events.guild.voice.GenericGuildVoiceUpdateEventgetEntity, getPropertyIdentifier, toString
 - 
Methods inherited from class net.dv8tion.jda.api.events.guild.voice.GenericGuildVoiceEventgetMember, getVoiceState
 - 
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEventgetGuild
 - 
Methods inherited from class net.dv8tion.jda.api.events.EventgetJDA, getResponseNumber
 - 
Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface net.dv8tion.jda.api.events.GenericEventgetJDA, getResponseNumber
 - 
Methods inherited from interface net.dv8tion.jda.api.events.guild.voice.GuildVoiceUpdateEventgetGuild, getMember
 - 
Methods inherited from interface net.dv8tion.jda.api.events.UpdateEventgetEntityType
 
- 
 
- 
- 
- 
Constructor Detail- 
GuildVoiceMoveEventpublic GuildVoiceMoveEvent(@Nonnull JDA api, long responseNumber, @Nonnull Member member, @Nonnull VoiceChannel channelLeft)
 
- 
 - 
Method Detail- 
getChannelLeft@Nonnull public VoiceChannel getChannelLeft() Description copied from interface:GuildVoiceUpdateEventTheVoiceChannelthat theMemberis moved from- Specified by:
- getChannelLeftin interface- GuildVoiceUpdateEvent
- Overrides:
- getChannelLeftin class- GenericGuildVoiceUpdateEvent
- Returns:
- The VoiceChannel
 
 - 
getChannelJoined@Nonnull public VoiceChannel getChannelJoined() Description copied from interface:GuildVoiceUpdateEventTheVoiceChannelthat was joined- Specified by:
- getChannelJoinedin interface- GuildVoiceUpdateEvent
- Overrides:
- getChannelJoinedin class- GenericGuildVoiceUpdateEvent
- Returns:
- The VoiceChannel
 
 - 
getOldValue@Nonnull public VoiceChannel getOldValue() Description copied from interface:UpdateEventThe old value- Specified by:
- getOldValuein interface- UpdateEvent<Member,VoiceChannel>
- Overrides:
- getOldValuein class- GenericGuildVoiceUpdateEvent
- Returns:
- The old value
 
 - 
getNewValue@Nonnull public VoiceChannel getNewValue() Description copied from interface:UpdateEventThe new value- Specified by:
- getNewValuein interface- UpdateEvent<Member,VoiceChannel>
- Overrides:
- getNewValuein class- GenericGuildVoiceUpdateEvent
- Returns:
- The new value
 
 
- 
 
-