2.1.1 • Published 3 years ago

@lavaclient/queue v2.1.1

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
3 years ago

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

2.1.1

3 years ago

2.1.0

3 years ago

2.0.6

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.0-rc.1

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.0

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago