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 SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classWrapper for a Voice Server Updatestatic classWrapper for a Voice State Updatestatic interfaceAbstraction for all relevant voice updates
- 
Method SummaryModifier and TypeMethodDescriptionvoidHandles the VOICE_SERVER_UPDATE.booleanHandles the VOICE_STATE_UPDATE.
- 
Method Details- 
onVoiceServerUpdateHandles the VOICE_SERVER_UPDATE.- Parameters:
- update- The- VoiceDispatchInterceptor.VoiceServerUpdateto handle
 
- 
onVoiceStateUpdateHandles the VOICE_STATE_UPDATE.
 This indicates the user might have moved to a new voice channel.- Parameters:
- update- The- VoiceDispatchInterceptor.VoiceStateUpdateto handle
- Returns:
- True, if a connection was previously established
 
 
-