@lavaclient/queue
v2.1.1
Published
A lavaclient plugin that adds queue functionality
Downloads
891
Readme
Added queue functionality for Lavaclient
- Official Lavaclient Plugin
Stable
yarn add @lavaclient/queue # or npm install
Beta
yarn add @lavaclient/queue@beta # or npm install
import "@lavaclient/queue/register";
import { Node } from "lavaclient";
const node = new Node({ ... });
const player = node.createPlayer("830616783199010857");
/* search for some tracks to play. */
const results = await node.rest.loadTracks("ytsearch:never gonna give you up");
/* add it to the queue. */
player.queue.add([ results[0] ]); // you can pass the requester in the second parameter
if (!player.playing) {
player.queue.start();
}
melike2d © 2018 - present