Table of Contents

Method SwitchChannelAsync

Namespace
DisCatSharp.Lavalink
Assembly
DisCatSharp.Lavalink.dll

Switches the player to a new channel.

public Task SwitchChannelAsync(DiscordChannel channel, bool deafened = true)

Parameters

channel DiscordChannel

The new channel to switch to.

deafened bool

Whether to join deafened.

Returns

Task

Exceptions

ArgumentException

Thrown when the target channel is not of the base type voice.