This package has been deprecated

Author message:

This is no longer necessary

@lavaclient/rest
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Lavaclient REST

A lavaclient plugin that adds Lavalink REST Functionality to both the Socket and Manager.

  • Verified: This is a verified Lavaclient plugin.

SupportGithub

Installation

npm install lavaclient-rest

Setup

This only works with lavaclient 3.x.x

import { Manager } from "lavaclient";
import { RESTPlugin } from "@lavaclient/rest";

const manager = new Manager(...);
manager.use(new RESTPlugin());

// Or

const manager = new Manager(..., {
  plugins: [new RESTPlugin()],
  ...
});

// Now:
(async () => {
  const { rest } = manager.ideal[0]; // Gets the first ideal node.
  await rest.resolve("ytsearch:Joji - Gimme Love");
  await rest.decode("...");
  await rest.routePlannerStatus();
  await rest.unmarkFailingAddress("...");
  await rest.unmarkAllFailingAddresses();
})();

Readme

Keywords

none

Package Sidebar

Install

npm i @lavaclient/rest

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

11.1 kB

Total Files

6

Last publish

Collaborators

  • melike2d