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 java.lang.Object implements VoiceDispatchInterceptor.VoiceUpdate
Wrapper for a Voice Server Update
-
-
Constructor Summary
Constructors Constructor Description VoiceServerUpdate(Guild guild, java.lang.String endpoint, java.lang.String token, java.lang.String sessionId, DataObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEndpoint()The voice server endpointGuildgetGuild()TheGuildfor this updatejava.lang.StringgetSessionId()The session id for the voice server sessionjava.lang.StringgetToken()The access token for the voice server connectionDataObjecttoData()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
-
VoiceServerUpdate
public VoiceServerUpdate(Guild guild, java.lang.String endpoint, java.lang.String token, java.lang.String sessionId, DataObject json)
-
-
Method Detail
-
getGuild
@Nonnull public Guild getGuild()
Description copied from interface:VoiceDispatchInterceptor.VoiceUpdateTheGuildfor this update- Specified by:
getGuildin interfaceVoiceDispatchInterceptor.VoiceUpdate- Returns:
- The guild
-
toData
@Nonnull public DataObject toData()
Description copied from interface:VoiceDispatchInterceptor.VoiceUpdateThe raw JSON object that was parsed from this update- Specified by:
toDatain interfaceSerializableData- Specified by:
toDatain interfaceVoiceDispatchInterceptor.VoiceUpdate- Returns:
- The raw JSON object
-
getEndpoint
@Nonnull public java.lang.String getEndpoint()
The voice server endpoint- Returns:
- The endpoint
-
getToken
@Nonnull public java.lang.String getToken()
The access token for the voice server connection- Returns:
- The access token
-
getSessionId
@Nonnull public java.lang.String getSessionId()
The session id for the voice server session- Returns:
- The session id
-
-