Method SwitchChannelAsync
- Namespace
- DisCatSharp.Lavalink
- Assembly
- DisCatSharp.Lavalink.dll
SwitchChannelAsync(DiscordChannel, bool)
Switches the player to a new channel.
public Task SwitchChannelAsync(DiscordChannel channel, bool deafened = true)
Parameters
channel
DiscordChannelThe new channel to switch to.
deafened
boolWhether to join deafened.
Returns
Exceptions
- ArgumentException
Thrown when the target channel is not of the base type voice.