Table of Contents
API reference

Method ConnectAsync

Namespace
DisCatSharp.Voice
Assembly
DisCatSharp.Voice.dll

ConnectAsync(DiscordChannel, bool?, bool?)

Create a Voice connection for the specified channel.

public Task<VoiceConnection> ConnectAsync(DiscordChannel channel, bool? muted = null, bool? deafened = null)

Parameters

channel DiscordChannel

Channel to connect to.

muted bool?

Whether to connect as muted.

deafened bool?

Whether to connect as deafened.

Returns

Task<VoiceConnection>

Voice connection for this channel.