A simple and easy to use Lavalink wrapper for discord.js that uses LavaCord underneath.
For stable
# Using yarn
yarn add @lavacord/discord.js
# Using npm
npm install @lavacord/discord.js
@lavacord/discord.js
acts as LavaCord and exports everything that LavaCord has.
To use this, you first start by initializing the Manager
as shown below.
const { Manager } = require("@lavacord/discord.js");
// `client` is your Discord.js client instance.
// `modes` is your array of node options.
// `options` (optional) is the manager options - you can use this to pass the user id and shard count manually if you want to
const manager = new Manager(client, nodes);
// Then you need to call Manager#connect. This connects to all of your Lavalink Nodes so the library can function. The function returns a Promise which you want to handle
await manager.connect();
That's all you have to do to get a basic start. View the the readme for Lavacord for more information, and documentation is also available. Join the Discord for more!
Download from the CI server
Put an application.yml
file in your working directory. Example
Run with java -jar Lavalink.jar
If you're having a problem with the module contact us in the Discord Server