Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/lavadeno/src/rest.ts>REST

lavadeno is a simple, easy-to-use, and flexible lavalink client built on the Deno Runtime.
Latest
class REST
import { REST } from "https://deno.land/x/lavadeno@3.3.0/src/rest.ts";

Constructors

new
REST(node: Node)

Properties

readonly
node: Node

The node this REST manager is in charge of.

requests: number

The total number of requests made to this node.

readonly
routePlanner: RoutePlanner

Route planner management.

readonly
url

Base URL of the node

Methods

decodeTrack(track: string): Promise<Lavalink.TrackInfo>

Decodes a base 64 encoded lavaplayer track into a JSON object.

decodeTracks(tracks: string[]): Promise<Lavalink.TrackInfo[]>

Decodes any base 64 lavaplayer tracks into JSON objects.

do<T>(endpoint: string, options?: RequestOptions): Promise<Response>

Makes a request to the specified endpoint.

loadTracks(identifier: string): Promise<Lavalink.LoadTracksResponse>

Loads or searches with the supplied identifier.