Method DisconnectAsync
- Namespace
- DSharpPlus.Lavalink
- Assembly
- DSharpPlus.Lavalink.dll
DisconnectAsync(bool)
Disconnects the connection from the voice channel.
public Task DisconnectAsync(bool shouldDestroy = true)
Parameters
shouldDestroy
boolWhether the connection should be destroyed on the Lavalink server when leaving.
Returns
- Task