selectNode

open override fun selectNode(region: VoiceRegion?, guildId: Long?): 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

guildId

The ID of the guild to be associated with the returned node

Throws

when no nodes are available