API reference
Method SetVolumeAsync
- Namespace
- DisCatSharp.Lavalink
- Assembly
- DisCatSharp.Lavalink.dll
SetVolumeAsync(int, CancellationToken)
Modifies the volume of the player.
public Task<LavalinkGuildPlayer> SetVolumeAsync(int volume, CancellationToken cancellationToken = default)
Parameters
volumeintThe volume of the player, range
0-1000, in percentage.cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<LavalinkGuildPlayer>
The updated guild player.
Exceptions
- ArgumentException
Thrown when the
volumeis out of range.