Method ConnectAsync
- Namespace
- DisCatSharp.Lavalink
- Assembly
- DisCatSharp.Lavalink.dll
ConnectAsync(DiscordChannel, bool)
Connects to a DiscordChannel.
public Task<LavalinkGuildPlayer> ConnectAsync(DiscordChannel channel, bool deafened = true)
Parameters
channel
DiscordChannelThe channel to join.
deafened
boolWhether to join the channel deafened.
Returns
- Task<LavalinkGuildPlayer>
The created LavalinkGuildPlayer.