Table of Contents
API reference

Method SwitchChannelAsync

Namespace
DisCatSharp.Lavalink
Assembly
DisCatSharp.Lavalink.dll

Switches the player to a new channel.

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

Parameters

channel DiscordChannel

The new channel to switch to.

deafened bool

Whether to join deafened.

cancellationToken CancellationToken

The cancellation token.

Returns

Task

Exceptions

ArgumentException

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