Skip to content

NodeSelectionStrategy

type NodeSelectionStrategy =
| "players"
| "playingPlayers"
| "memory"
| "cpuLavalink"
| "cpuSystem"
| "calls"
| "priority"
| "health"
| "custom";

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

Built-in strategies used by NodeManager.selectNode.

players is the safest default for most bots. health uses the node’s calculated health score when stats are available, while custom lets an application provide its own policy.