Class GuildVoiceJoinEvent
- 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.GuildVoiceJoinEvent
-
- All Implemented Interfaces:
GenericEvent,GuildVoiceUpdateEvent,UpdateEvent<Member,VoiceChannel>
public class GuildVoiceJoinEvent extends GenericGuildVoiceUpdateEvent
Indicates that aMemberconnected to aVoiceChannel.When the
Memberis moved aGuildVoiceMoveEventis fired insteadCan be used to detect when a member joins a voice channel for the first time.
-
-
Field Summary
-
Fields inherited from interface net.dv8tion.jda.api.events.guild.voice.GuildVoiceUpdateEvent
IDENTIFIER
-
-
Constructor Summary
Constructors Constructor Description GuildVoiceJoinEvent(JDA api, long responseNumber, Member member)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoiceChannelgetChannelJoined()TheVoiceChannelthat was joinedVoiceChannelgetNewValue()The new value-
Methods inherited from class net.dv8tion.jda.api.events.guild.voice.GenericGuildVoiceUpdateEvent
getChannelLeft, getEntity, getOldValue, 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
-
getChannelJoined
@Nonnull public VoiceChannel getChannelJoined()
Description copied from interface:GuildVoiceUpdateEventTheVoiceChannelthat was joined- Specified by:
getChannelJoinedin interfaceGuildVoiceUpdateEvent- Overrides:
getChannelJoinedin classGenericGuildVoiceUpdateEvent- Returns:
- The
VoiceChannel
-
getNewValue
@Nonnull public VoiceChannel getNewValue()
Description copied from interface:UpdateEventThe new value- Specified by:
getNewValuein interfaceUpdateEvent<Member,VoiceChannel>- Overrides:
getNewValuein classGenericGuildVoiceUpdateEvent- Returns:
- The new value
-
-