Table of Contents

Class LavalinkRestClient

Namespace
DSharpPlus.Lavalink
Assembly
DSharpPlus.Lavalink.dll

Represents a class for Lavalink REST calls.

public sealed class LavalinkRestClient
Inheritance
object
LavalinkRestClient

Constructors

LavalinkRestClient(ConnectionEndpoint, string)

Creates a new Lavalink REST client.

Properties

RestEndpoint

Gets the REST connection endpoint for this client.

Methods

DecodeTrackAsync(string)

Decodes a base64 track string into a Lavalink track object.

DecodeTracksAsync(List<string>)

Decodes a list of base64 track strings into Lavalink track objects.

DecodeTracksAsync(string[])

Decodes an array of base64 track strings into Lavalink track objects.

FreeAddressAsync(string)

Unmarks a failed route planner IP Address.

FreeAllAddressesAsync()

Unmarks all failed route planner IP Addresses.

GetRoutePlannerStatusAsync()

Retrieves statistics from the route planner.

GetTracksAsync(FileInfo)

Loads tracks from a local file.

GetTracksAsync(string, LavalinkSearchType)

Searches for specified terms.

GetTracksAsync(Uri)

Loads tracks from specified URL.

GetVersionAsync()

Gets the version of the Lavalink server.