Package net.dv8tion.jda.api.hooks
Interface VoiceDispatchInterceptor.VoiceUpdate
-
- All Superinterfaces:
SerializableData
- All Known Implementing Classes:
VoiceDispatchInterceptor.VoiceServerUpdate
,VoiceDispatchInterceptor.VoiceStateUpdate
- Enclosing interface:
- VoiceDispatchInterceptor
public static interface VoiceDispatchInterceptor.VoiceUpdate extends SerializableData
Abstraction for all relevant voice updates
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DirectAudioController
getAudioController()
Shortcut to access the audio controller of this JDA instanceGuild
getGuild()
TheGuild
for this updatedefault java.lang.String
getGuildId()
Shortcut to access the guild iddefault long
getGuildIdLong()
Shortcut to access the guild iddefault JDA
getJDA()
Shortcut to access the JDA instancedefault JDA.ShardInfo
getShardInfo()
Shortcut to access the shard info for this JDA instanceDataObject
toData()
The raw JSON object that was parsed from this update
-
-
-
Method Detail
-
toData
@Nonnull DataObject toData()
The raw JSON object that was parsed from this update- Specified by:
toData
in interfaceSerializableData
- Returns:
- The raw JSON object
-
getAudioController
@Nonnull default DirectAudioController getAudioController()
Shortcut to access the audio controller of this JDA instance- Returns:
- The
DirectAudioController
for this JDA instance
-
getGuildIdLong
default long getGuildIdLong()
Shortcut to access the guild id- Returns:
- The guild id
-
getGuildId
@Nonnull default java.lang.String getGuildId()
Shortcut to access the guild id- Returns:
- The guild id
-
getJDA
@Nonnull default JDA getJDA()
Shortcut to access the JDA instance- Returns:
- The JDA instance
-
getShardInfo
@Nullable default JDA.ShardInfo 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
-
-