Method GetPlayerAsync
- Namespace
- DisCatSharp.Lavalink
- Assembly
- DisCatSharp.Lavalink.dll
GetPlayerAsync(DiscordGuild)
Gets the lavalink player attached to guild
.
Use GetGuildPlayer(DiscordGuild) if you want to interact with the actual player.
public Task<LavalinkPlayer> GetPlayerAsync(DiscordGuild guild)
Parameters
guild
DiscordGuildThe guild to get the player for.
Returns
- Task<LavalinkPlayer>
The found player or null.