API reference
Method ConnectAsync
- Namespace
- DisCatSharp.Lavalink
- Assembly
- DisCatSharp.Lavalink.dll
ConnectAsync(DiscordChannel, LavalinkSession, bool, bool)
Connects to this voice channel using Lavalink.
public static Task ConnectAsync(this DiscordChannel channel, LavalinkSession session, bool deafened = true, bool muted = false)
Parameters
channelDiscordChannelChannel to connect to.
sessionLavalinkSessionLavalink session to connect through.
deafenedboolWhether to join the channel deafened.
mutedboolWhether to join the channel muted.
Returns
- Task
If successful, the Lavalink client.