Skip to content

$nodeInfo

$nodeInfo will return given lavalink node information.

Usage

$nodeInfo[name;type]

Parameters

FieldTypeDescriptionRequired
namestringLavalink node nametrue
typestringInformation to retrieve (see below)true

Types

FieldReturnsDescription
cpu.coresnumberReturns the cpu cores
cpu.systemnumberReturns the cpu system load
cpu.lavalinknumberReturns the cpu lavalink load
memory.freenumberReturns the free memory left
memory.usednumberReturns the used memory
memory.allocatednumberReturns the allocated memory
memory.reservablenumberReturns the reservable memory
player.totalnumberReturns the total player
player.usednumberReturns the used player
statusstringReturns online or offline

Example(s)

This will return given lavalink node information

1
client.command({
2
name: "nodeinfo",
3
code: `
4
$nodeInfo[node 1;cpu.cores]
5
`
6
});