Example #1
0
 /// <summary>
 ///     Disconnect from the voice channel.
 /// </summary>
 /// <exception cref="InvalidPlayerException">Thrown if not connected to a voice channel.</exception>
 /// <exception cref="InvalidAudioChannelException">Thrown if not connected to the specified voice channel.</exception>
 public async Task Leave(IVoiceChannel channel)
 {
     _queue.Clear(channel.Guild);
     await _player.Leave(channel);
 }