selectNode

Selects a node based on the criteria of the load balancer.

Return

The best node that matches the criteria

See also

#selectNode(VoiceRegion)

Throws

when no nodes are available


abstract fun selectNode(region: VoiceRegion?): LavalinkNode

Selects a node based on the criteria of the load balancer.

Return

The best node that matches the criteria

Parameters

region

A voice region may be provided to filter on the closest region to this node

Throws

when no nodes are available