Table of Contents

Method GetIdealNodeConnection

Namespace
DSharpPlus.Lavalink
Assembly
DSharpPlus.Lavalink.dll

Gets a Lavalink node connection based on load balancing and an optional voice region.

public LavalinkNodeConnection GetIdealNodeConnection(DiscordVoiceRegion region = null)

Parameters

region DiscordVoiceRegion

The 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.