Skip to content

A lavalink library for discord.js using Lavacord

License

Notifications You must be signed in to change notification settings

r1zyn/discord.js

 
 

Repository files navigation

Discord npm (scoped) npm downloads GitHub Depfu

@lavacord/discord.js

A simple and easy to use Lavalink wrapper for discord.js that uses LavaCord underneath.

Documentation

lavacord.github.io/lavacord

Installation

For stable

# Using yarn
yarn add @lavacord/discord.js

# Using npm
npm install @lavacord/discord.js

How to use

@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!

LavaLink configuration

Download from the CI server

Put an application.yml file in your working directory. Example

Run with java -jar Lavalink.jar

The issue tracker is for issues only

If you're having a problem with the module contact us in the Discord Server

About

A lavalink library for discord.js using Lavacord

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%