Giter Site home page Giter Site logo

discord.js's Introduction

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, it exports everything that lavacord has. To use this you first start by initializing the Manager which you do like this

const { Manager } = require("@lavacord/discord.js");

// Client is your Discord.js client instance.
// Nodes is ur array of node options.
// There is also an optional parameter, which is options so you can pass your user id, 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 does return a Promise which you want to handle
await manager.connect();

That's all you have to do to get a basic start. Look at the readme for Lavacord for more information, you also have the documentation. 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

discord.js's People

Contributors

mrjacz avatar dependabot[bot] avatar depfu[bot] avatar favna avatar papiophidian avatar dependabot-preview[bot] avatar

Stargazers

DevMirza avatar  avatar 권세인 avatar  avatar Dustin Meyer avatar Pablo Vinícius avatar Atolycs avatar  avatar Даниил Пугин avatar Abdelhakim avatar Isaque Lima avatar Pedro Fracassi avatar Tristan avatar MrPropre avatar Kyle avatar Tyler Richards avatar

Watchers

James Cloos avatar  avatar

discord.js's Issues

Problem with running on linux?

I was running a discord bot with this just fine on Windows using Node.js version 14, and I've now switched to my Linux PC and tried running the same code again, with the same version of Node.js, and I get this error:

/home/luu/LuuBot/node_modules/lavacord/dist/lib/Manager.js:25
for (const node of nodes)
^

TypeError: nodes is not iterable
at new Manager (/home/luu/LuuBot/node_modules/lavacord/dist/lib/Manager.js:25:28)
at new Manager (/home/luu/LuuBot/node_modules/@lavacord/discord.js/dist/index.js:18:9)
at Object. (/home/luu/LuuBot/index.js:7:25)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47

Peer dep tree resolve errors while installing for dev instance

It would definitely be easier to just post the npm logs;

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @lavacord/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"^7.32.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^5.0.0 || ^6.0.0" from @typescript-eslint/[email protected]
npm ERR! node_modules/@typescript-eslint/parser
npm ERR!   dev @typescript-eslint/parser@"^2.33.0" from the root project
npm ERR!   peer @typescript-eslint/parser@"^2.0.0" from @typescript-eslint/[email protected]
npm ERR!   node_modules/@typescript-eslint/eslint-plugin
npm ERR!     dev @typescript-eslint/eslint-plugin@"^2.33.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution..

Error installing the package

I am getting the peer depency error where it requires v12 but i am using v13 please draw a new release it would help alot.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.