Skip to content

$volume

$volume will set or return the current volume.

Usage

$volume[value]

Parameters

FieldTypeDescriptionRequired
valuestring, numbernew volume
1. number (any number)
2. get (returns current volume)
true

Example(s)

This will return the current volume:

1
client.command({
2
name: "volume",
3
code: `
4
$volume[get]
5
`
6
});

This will set the current volume to 45:

1
client.command({
2
name: "volume",
3
code: `
4
$volume[45]
5
`
6
});