Method SetVolumeAsync
- Namespace
- DisCatSharp.Lavalink
- Assembly
- DisCatSharp.Lavalink.dll
SetVolumeAsync(int)
Modifies the volume of the player.
public Task<LavalinkGuildPlayer> SetVolumeAsync(int volume)
Parameters
volume
intThe volume of the player, range
0
-1000
, in percentage.
Returns
- Task<LavalinkGuildPlayer>
The updated guild player.
Exceptions
- ArgumentException
Thrown when the
volume
is out of range.