Package net.dv8tion.jda.api.hooks
Class VoiceDispatchInterceptor.VoiceStateUpdate
- java.lang.Object
-
- net.dv8tion.jda.api.hooks.VoiceDispatchInterceptor.VoiceStateUpdate
-
- All Implemented Interfaces:
VoiceDispatchInterceptor.VoiceUpdate
,SerializableData
- Enclosing interface:
- VoiceDispatchInterceptor
public static class VoiceDispatchInterceptor.VoiceStateUpdate extends java.lang.Object implements VoiceDispatchInterceptor.VoiceUpdate
Wrapper for a Voice State Update
-
-
Constructor Summary
Constructors Constructor Description VoiceStateUpdate(VoiceChannel channel, GuildVoiceState voiceState, DataObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoiceChannel
getChannel()
The update voice channelGuild
getGuild()
TheGuild
for this updateGuildVoiceState
getVoiceState()
The voice state for the guildDataObject
toData()
The raw JSON object that was parsed from this update-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.dv8tion.jda.api.hooks.VoiceDispatchInterceptor.VoiceUpdate
getAudioController, getGuildId, getGuildIdLong, getJDA, getShardInfo
-
-
-
-
Constructor Detail
-
VoiceStateUpdate
public VoiceStateUpdate(VoiceChannel channel, GuildVoiceState voiceState, DataObject json)
-
-
Method Detail
-
getGuild
@Nonnull public Guild getGuild()
Description copied from interface:VoiceDispatchInterceptor.VoiceUpdate
TheGuild
for this update- Specified by:
getGuild
in interfaceVoiceDispatchInterceptor.VoiceUpdate
- Returns:
- The guild
-
toData
@Nonnull public DataObject toData()
Description copied from interface:VoiceDispatchInterceptor.VoiceUpdate
The raw JSON object that was parsed from this update- Specified by:
toData
in interfaceSerializableData
- Specified by:
toData
in interfaceVoiceDispatchInterceptor.VoiceUpdate
- Returns:
- The raw JSON object
-
getChannel
@Nullable public VoiceChannel getChannel()
The update voice channel- Returns:
- The updated voice channel, or null to signal disconnect
-
getVoiceState
@Nonnull public GuildVoiceState getVoiceState()
The voice state for the guild- Returns:
- The voice state
-
-