Table of Contents
API reference

Method SetVolumeAsync

Namespace
DisCatSharp.Lavalink
Assembly
DisCatSharp.Lavalink.dll

Modifies the volume of the player.

public Task<LavalinkGuildPlayer> SetVolumeAsync(int volume, CancellationToken cancellationToken = default)

Parameters

volume int

The volume of the player, range 0-1000, in percentage.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<LavalinkGuildPlayer>

The updated guild player.

Exceptions

ArgumentException

Thrown when the volume is out of range.