SealedStaticdecodeDecodes track(s) from their base64 encoded form.
The Lavalink node to use.
A single track to decode.
A promise resolving to the decoded track information.
RestError If Lavalink encounters an error.
Decodes multiple tracks from their base64 encoded form.
The Lavalink node to use.
An array of tracks to decode.
A promise resolving to an array of decoded track information.
RestError If Lavalink encounters an error.
StaticdestroyDestroys a player on a Lavalink node.
The Lavalink node hosting the player.
The guild ID associated with the player to destroy.
A promise resolving to the destroy player result.
RestError If Lavalink encounters an error.
StaticinfoRetrieves the information of the Lavalink server.
The Lavalink node to query.
A promise resolving to the information of lavalink.
RestError If Lavalink encounters an error.
StaticloadLoads tracks from various sources using Lavalink's loadtracks endpoint.
The Lavalink node to use.
The identifier to load tracks from (URL, search query, etc.)
A promise resolving to the track loading result.
RestError If Lavalink encounters an error.
StaticstatsRetrieves the statistics of the Lavalink node.
The Lavalink node to query.
A promise resolving to the statistics of lavalink.
RestError If Lavalink encounters an error.
StaticupdateUpdates a player on a Lavalink node.
The Lavalink node hosting the player.
The guild ID associated with the player.
The player update data.
If true, the event will be dropped if there's a currently playing track.
A promise resolving to the updated player information.
RestError If Lavalink encounters an error.
StaticupdateUpdates the session properties of a Lavalink node.
The Lavalink node to update.
A promise resolving to the update session result.
RestError If Lavalink encounters an error.
StaticversionRetrieves the version from the Lavalink server.
The Lavalink node to query.
A promise resolving to the version of lavalink.
RestError If Lavalink encounters an error.
A utility class for interacting with the Lavalink REST API.
Remarks
Provides methods to perform various operations on a Lavalink server through its REST API, including loading tracks, decoding tracks, and controlling players.