Interface GuildVoiceUpdateEvent
-
- All Superinterfaces:
GenericEvent
,UpdateEvent<Member,VoiceChannel>
- All Known Implementing Classes:
GuildVoiceJoinEvent
,GuildVoiceLeaveEvent
,GuildVoiceMoveEvent
public interface GuildVoiceUpdateEvent extends UpdateEvent<Member,VoiceChannel>
Indicates that aMember
joined or left aVoiceChannel
.
Generic event that combinesGuildVoiceLeaveEvent
,GuildVoiceJoinEvent
, andGuildVoiceMoveEvent
for 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 String
IDENTIFIER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VoiceChannel
getChannelJoined()
TheVoiceChannel
that was joinedVoiceChannel
getChannelLeft()
TheVoiceChannel
that theMember
is 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()
TheVoiceChannel
that theMember
is moved from- Returns:
- The
VoiceChannel
-
getChannelJoined
@Nullable VoiceChannel getChannelJoined()
TheVoiceChannel
that was joined- Returns:
- The
VoiceChannel
-
-