Table of Contents
API reference

Method ConnectAsync

Namespace
DisCatSharp.Lavalink
Assembly
DisCatSharp.Lavalink.dll

Connects to a DiscordChannel.

public Task<LavalinkGuildPlayer> ConnectAsync(DiscordChannel channel, bool deafened = true, bool muted = false, CancellationToken cancellationToken = default)

Parameters

channel DiscordChannel

The channel to join.

deafened bool

Whether to join the channel deafened.

muted bool

Whether to join the channel muted.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<LavalinkGuildPlayer>

The created LavalinkGuildPlayer.

Exceptions

ArgumentException