LavaJS Logo


Discord License Downloads

Installation

npm install @overleap/lavajs
yarn add @overleap/lavajs

Important

You 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.

Documentation and Support

Basic Startup Guide

Example code for running the client:

// Require Discord and LavaJS clients
const { Client } = require("discord.js");
const { LavaClient } = require("@overleap/lavajs");

// New discord client instance
const bot = new Client();

// Create the node options
const nodes = [
    {
        host: "localhost",
        port: 2333,
        password: "mypassword",
        retries: 5,
    },
];

// New LavaClient instance
const lavaClient = new LavaClient(bot, nodes);

// Login the discord client
bot.log("token");

Bot Examples

Author