- Using Node Package Manager (NPM):
npm install @overleap/lavajs- Or using Yarn:
yarn add @overleap/lavajsYou need the following things before you can kick off with LavaJS:
The setup has been covered in our official documentation. Do check it out if you have any doubts.
- The latest changelog can be found here.
- Our official documentation is available here.
- For any further query and support join us at Overleap discord.
- Create an
application.ymlfile in theLavalink.jardirectory and paste this example in it. - Run the
Lavalink.jarfile in a terminal window usingjava -jar Lavalink.jar.
Example code for running the client:
// Require Discord and LavaJS clientsconst{ Client }=require("discord.js");const{ LavaClient }=require("@overleap/lavajs");// New discord client instanceconstbot=newClient();// Create the node optionsconstnodes=[{host: "localhost",port: 2333,password: "mypassword",retries: 5,},];// New LavaClient instanceconstlavaClient=newLavaClient(bot,nodes);// Login the discord clientbot.log("token");- TODO
- ThatAnonyG (Ratul Saha)
- Links:
- Donate The Development

