API reference
Method UpdateAsync
- Namespace
- DisCatSharp.Lavalink
- Assembly
- DisCatSharp.Lavalink.dll
UpdateAsync(Action<LavalinkPlayerUpdateModel>, CancellationToken)
Updates the LavalinkPlayer.
public Task<LavalinkGuildPlayer> UpdateAsync(Action<LavalinkPlayerUpdateModel> action, CancellationToken cancellationToken = default)
Parameters
actionAction<LavalinkPlayerUpdateModel>The action to perform on the player.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<LavalinkGuildPlayer>
The updated guild player.
Exceptions
- InvalidOperationException
Thrown when both
EncodedTrackandIdentifierare set.