Interface GuildVoiceUpdateEvent
-
- All Superinterfaces:
GenericEvent,UpdateEvent<Member,VoiceChannel>
- All Known Implementing Classes:
GuildVoiceJoinEvent,GuildVoiceLeaveEvent,GuildVoiceMoveEvent
public interface GuildVoiceUpdateEvent extends UpdateEvent<Member,VoiceChannel>
Indicates that aMemberjoined or left aVoiceChannel.
Generic event that combinesGuildVoiceLeaveEvent,GuildVoiceJoinEvent, andGuildVoiceMoveEventfor convenience.Can be used to detect when a Member leaves/joins a channel
Identifier:
voice-channel
-
-
Field Summary
Fields Modifier and Type Field Description static StringIDENTIFIER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VoiceChannelgetChannelJoined()TheVoiceChannelthat was joinedVoiceChannelgetChannelLeft()TheVoiceChannelthat theMemberis moved from-
Methods inherited from interface net.dv8tion.jda.api.events.GenericEvent
getJDA, getResponseNumber
-
Methods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntity, getEntityType, getNewValue, getOldValue, getPropertyIdentifier
-
-
-
-
Field Detail
-
IDENTIFIER
static final String IDENTIFIER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getChannelLeft
@Nullable VoiceChannel getChannelLeft()
TheVoiceChannelthat theMemberis moved from- Returns:
- The
VoiceChannel
-
getChannelJoined
@Nullable VoiceChannel getChannelJoined()
TheVoiceChannelthat was joined- Returns:
- The
VoiceChannel
-
-