Interface VoiceDispatchInterceptor.VoiceUpdate
- All Superinterfaces:
SerializableData
- All Known Implementing Classes:
VoiceDispatchInterceptor.VoiceServerUpdate, VoiceDispatchInterceptor.VoiceStateUpdate
- Enclosing interface:
VoiceDispatchInterceptor
Abstraction for all relevant voice updates
- Since:
- 4.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault DirectAudioControllerShortcut to access the audio controller of this JDA instancegetGuild()TheGuildfor this updatedefault StringShortcut to access the guild iddefault longShortcut to access the guild iddefault JDAgetJDA()Shortcut to access the JDA instancedefault JDA.ShardInfoShortcut to access the shard info for this JDA instancetoData()The raw JSON object that was parsed from this update
-
Method Details
-
getGuild
-
toData
The raw JSON object that was parsed from this update- Specified by:
toDatain interfaceSerializableData- Returns:
- The raw JSON object
-
getAudioController
Shortcut to access the audio controller of this JDA instance- Returns:
- The
DirectAudioControllerfor this JDA instance
-
getGuildIdLong
default long getGuildIdLong()Shortcut to access the guild id- Returns:
- The guild id
-
getGuildId
-
getJDA
-
getShardInfo
Shortcut to access the shard info for this JDA instance- Returns:
- The shard information, or null if this was not for a sharded client
-