Method UpdateAsync
- Namespace
- DisCatSharp.Lavalink
- Assembly
- DisCatSharp.Lavalink.dll
UpdateAsync(Action<LavalinkPlayerUpdateModel>)
Updates the LavalinkPlayer.
public Task<LavalinkGuildPlayer> UpdateAsync(Action<LavalinkPlayerUpdateModel> action)
Parameters
action
Action<LavalinkPlayerUpdateModel>The action to perform on the player.
Returns
- Task<LavalinkGuildPlayer>
The updated guild player.
Exceptions
- InvalidOperationException
Thrown when both
EncodedTrack
andIdentifier
are set.