Package net.dv8tion.jda.api.managers
Interface DirectAudioController
-
public interface DirectAudioControllerDirect access to internal gateway communication.
This should only be used if aVoiceDispatchInterceptorhas been provided.For normal operation use
Guild.getAudioManager()instead.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconnect(VoiceChannel channel)Requests a voice server endpoint for connecting to the voice gateway.voiddisconnect(Guild guild)Requests to terminate the connection to a voice channel.JDAgetJDA()The associated JDA instancevoidreconnect(VoiceChannel channel)Requests to reconnect to the voice channel in the target guild.
-
-
-
Method Detail
-
getJDA
@Nonnull JDA getJDA()
The associated JDA instance- Returns:
- The JDA instance
-
connect
void connect(@Nonnull VoiceChannel channel)Requests a voice server endpoint for connecting to the voice gateway.- Parameters:
channel- The channel to connect to- See Also:
reconnect(VoiceChannel)
-
disconnect
void disconnect(@Nonnull Guild guild)Requests to terminate the connection to a voice channel.- Parameters:
guild- The guild we were connected to- See Also:
reconnect(VoiceChannel)
-
reconnect
void reconnect(@Nonnull VoiceChannel channel)Requests to reconnect to the voice channel in the target guild.- Parameters:
channel- The channel we were connected to
-
-