Skip to content

$addNode

$addNode will add new lavalink node.

Usage

$addNode[json]

Parameters

FieldTypeDescriptionRequired
jsonstringJSON FORMAT (see bellow)true

Example Format

{
"name": "Node Name",
"host": "host.lavalink.com",
"port": 0000,
"auth": "youshallnotpass",
"secure": false
}

Example(s)

This add new lavalink node

1
client.command({
2
name: "addnode",
3
code: `
4
$addNode[{
5
"name": "Node Name",
6
"host": "host.lavalink.com",
7
"port": 0000,
8
"auth": "youshallnotpass",
9
"secure": false
10
}]
11
`
12
});