Method GetIdealNodeConnection
- Namespace
- DSharpPlus.Lavalink
- Assembly
- DSharpPlus.Lavalink.dll
GetIdealNodeConnection(DiscordVoiceRegion)
Gets a Lavalink node connection based on load balancing and an optional voice region.
public LavalinkNodeConnection GetIdealNodeConnection(DiscordVoiceRegion region = null)
Parameters
region
DiscordVoiceRegionThe region to compare with the node's Region, if any.
Returns
- LavalinkNodeConnection
The least load affected node connection, or null if no nodes are present.