Node Events
Node-Manager Events
Monitor and manage Lavalink nodes:
-
raw
➡️(node, payload) => {}
Triggered when raw data is received from the node. -
disconnect
➡️(node, reason) => {}
Triggered when the node disconnects. Reason for disconnection is provided. -
connect
➡️(node) => {}
Triggered when the node successfully connects. -
reconnecting
➡️(node) => {}
Triggered when the node is attempting to reconnect. -
reconnectinprogress
➡️(node) => {}
Triggered when the node reconnection process started (because of NodeOptions#retryDelay). -
create
➡️(node) => {}
Triggered when a new node is created. -
destroy
➡️(node) => {}
Triggered when a node is destroyed. -
error
➡️(node, error, payload) => {}
Triggered when an error occurs with the node. -
resumed
➡️(node, payload, players) => {}
Triggered when the node resumes. Resuming needs to be handled manually; ensure to add the players to the manager.