Table of Contents
API reference

Method UpdateAsync

Namespace
DisCatSharp.Lavalink
Assembly
DisCatSharp.Lavalink.dll

Updates the LavalinkPlayer.

public Task<LavalinkGuildPlayer> UpdateAsync(Action<LavalinkPlayerUpdateModel> action, CancellationToken cancellationToken = default)

Parameters

action Action<LavalinkPlayerUpdateModel>

The action to perform on the player.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<LavalinkGuildPlayer>

The updated guild player.

Exceptions

InvalidOperationException

Thrown when both EncodedTrack and Identifier are set.