Table of Contents

Class LavalinkNodeConnection

Namespace
DSharpPlus.Lavalink
Assembly
DSharpPlus.Lavalink.dll

Represents a connection to a Lavalink node.

[Obsolete("DSharpPlus.Lavalink is deprecated for removal.", true)]
public sealed class LavalinkNodeConnection
Inheritance
object
LavalinkNodeConnection

Properties

ConnectedGuilds

Gets a dictionary of Lavalink guild connections for this node.

Discord

Gets the Discord client this node connection belongs to.

IsConnected

Gets whether the client is connected to Lavalink.

NodeEndpoint

Gets the remote endpoint of this Lavalink node connection.

Parent

Gets the parent extension which this node connection belongs to.

Rest

Gets the REST client for this Lavalink connection.

Statistics

Gets the current resource usage statistics.

Methods

ConnectAsync(DiscordChannel)

Connects this Lavalink node to specified Discord channel.

GetGuildConnection(DiscordGuild)

Gets a Lavalink connection to specified Discord channel.

StopAsync()

Stops this Lavalink node connection and frees resources.

Events

Disconnected

Triggered when this node disconnects.

GuildConnectionCreated

Triggered whenever a new guild connection is created.

GuildConnectionRemoved

Triggered whenever a guild connection is removed.

LavalinkSocketErrored

Triggered whenever Lavalink WebSocket throws an exception.

PlaybackFinished

Triggered whenever playback of a track finishes.

PlaybackStarted

Triggered whenever playback of a track starts.

This is only available for version 3.3.1 and greater.

PlayerUpdated

Triggered whenever any of the players on this node is updated.

StatisticsReceived

Triggered when this node receives a statistics update.

TrackException

Triggered whenever playback of a track encounters an error.

TrackStuck

Triggered whenever playback of a track gets stuck.