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
channelDiscordChannelChannel to connect to.
mutedbool?Whether to connect as muted.
deafenedbool?Whether to connect as deafened.
Returns
- Task<VoiceConnection>
Voice connection for this channel.