Package net.dv8tion.jda.api.hooks
Interface VoiceDispatchInterceptor
public interface VoiceDispatchInterceptor
Interceptor used to handle critical voice dispatches.
This will make it impossible to connect to voice channels with the built-in
This will make it impossible to connect to voice channels with the built-in
AudioManager
.
It is expected that the user has some other means of establishing voice connections when this is used.- Since:
- 4.0.0
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Wrapper for a Voice Server Updatestatic class
Wrapper for a Voice State Updatestatic interface
Abstraction for all relevant voice updates -
Method Summary
Modifier and TypeMethodDescriptionvoid
Handles the VOICE_SERVER_UPDATE.boolean
Handles the VOICE_STATE_UPDATE.
-
Method Details
-
onVoiceServerUpdate
Handles the VOICE_SERVER_UPDATE.- Parameters:
update
- TheVoiceDispatchInterceptor.VoiceServerUpdate
to handle
-
onVoiceStateUpdate
Handles the VOICE_STATE_UPDATE.
This indicates the user might have moved to a new voice channel.- Parameters:
update
- TheVoiceDispatchInterceptor.VoiceStateUpdate
to handle- Returns:
- True, if a connection was previously established
-