Package net.dv8tion.jda.api.hooks
Class VoiceDispatchInterceptor.VoiceServerUpdate
java.lang.Object
net.dv8tion.jda.api.hooks.VoiceDispatchInterceptor.VoiceServerUpdate
- All Implemented Interfaces:
VoiceDispatchInterceptor.VoiceUpdate
,SerializableData
- Enclosing interface:
VoiceDispatchInterceptor
public static class VoiceDispatchInterceptor.VoiceServerUpdate
extends Object
implements VoiceDispatchInterceptor.VoiceUpdate
Wrapper for a Voice Server Update
-
Constructor Summary
ConstructorDescriptionVoiceServerUpdate
(Guild guild, String endpoint, String token, String sessionId, DataObject json) -
Method Summary
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 Details
-
VoiceServerUpdate
public VoiceServerUpdate(Guild guild, String endpoint, String token, String sessionId, DataObject json)
-
-
Method Details
-
getGuild
Description copied from interface:VoiceDispatchInterceptor.VoiceUpdate
TheGuild
for this update- Specified by:
getGuild
in interfaceVoiceDispatchInterceptor.VoiceUpdate
- Returns:
- The guild
-
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
-
getEndpoint
The voice server endpoint- Returns:
- The endpoint
-
getToken
The access token for the voice server connection- Returns:
- The access token
-
getSessionId
The session id for the voice server session- Returns:
- The session id
-