Table of Contents
API reference

Method GetPlayerAsync

Namespace
DisCatSharp.Lavalink
Assembly
DisCatSharp.Lavalink.dll

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, CancellationToken cancellationToken = default)

Parameters

guild DiscordGuild

The guild to get the player for.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<LavalinkPlayer>

The found player or null.