addNode

fun addNode(nodeOptions: NodeOptions): LavalinkNode

Add a node to the client.

Parameters

nodeOptions

a populated NodeOptionsObject


fun addNode(name: String, address: URI, password: String, regionFilter: IRegionFilter? = null): LavalinkNode

Deprecated

Use NodeOptions instead

Replace with

addNode(NodeOptions.Builder()...build())

Add a node to the client.

Parameters

name

The name of your node

address

The ip and port of your node

password

The password of your node

regionFilter

(not currently used) Allows you to limit your node to a specific discord voice region