Skip to content

LavalinkNodeOptions

Defined in: src/structures/Types/Node.ts:26

Node Options for creating a lavalink node

Property (defined in)TypeDescription
authorization
(src/structures/Types/Node.ts:36)
stringThe Lavalink Password / Authorization-Key
autoChecks?
(src/structures/Types/Node.ts:67)
objectPer Node Options
autoChecks.pluginValidations?
(src/structures/Types/Node.ts:69)
booleanWether to check for every node to check for plugin validations or not. (ignored for NodeType NodeLink)
autoChecks.sourcesValidations?
(src/structures/Types/Node.ts:71)
booleanWether to check for every node to check for source validations or not.
closeOnError?
(src/structures/Types/Node.ts:61)
booleanClose on error
enablePingOnStatsCheck?
(src/structures/Types/Node.ts:65)
booleanRecommended, to check whether the client is still connected or not on the stats endpoint
heartBeatInterval?
(src/structures/Types/Node.ts:63)
numberHeartbeat interval , set to <= 0 to disable heartbeat system
host
(src/structures/Types/Node.ts:32)
stringThe Lavalink Server-Ip / Domain-URL
id?
(src/structures/Types/Node.ts:49)
stringAdd a Custom ID to the node, for later use
nodeType?
(src/structures/Types/Node.ts:28)
NodeTypesSpecify the Node-Type of this node. Default: Lavalink
port
(src/structures/Types/Node.ts:34)
numberThe Lavalink Connection Port
priority?
(src/structures/Types/Node.ts:38)
numberOptional priority helper for custom node selection strategies.
regions?
(src/structures/Types/Node.ts:51)
string[]Voice Regions of this Node
requestSignalTimeoutMS?numbersignal for cancelling requests - default: AbortSignal.timeout(options.requestSignalTimeoutMS
retryAmount?
(src/structures/Types/Node.ts:53)
numberThe max amount of retries for this node.
retryDelay?
(src/structures/Types/Node.ts:55)
numberThe delay of how often to retry a reconnection.
retryTimespan?
(src/structures/Types/Node.ts:57)
numberHow long a retry is a valid retry, it should be at least retryAmount*retryDelay. if <= 0 (default) then this won’t be accounted.
secure?
(src/structures/Types/Node.ts:45)
booleanDoes the Server use ssl (https)
sessionId?
(src/structures/Types/Node.ts:47)
stringRESUME THE PLAYER? by providing a sessionid on the node-creation
version?
(Lavalink API version path (e.g. v3 or v4). Defaults to v4.)
"v3" \"v4"
wsPath?
(src/structures/Types/Node.ts:43)
stringOptional websocket path override (must start with ”/”). Defaults to /${version}/websocket.