Skip to content

Lavalink Library based on lavalink.js made for discord.js

License

Notifications You must be signed in to change notification settings

lavalibs/discord.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord.js

lavalibs support server

Lavalink Library based on lavalink.js made for discord.js.

Installation

npm i @lavalink/discord.js

Usage

const { NodeManager } = require('@lavalink/discord.js');
const { Client } = require('discord.js');

const client = new Client();
const node = new NodeManager(client, {
  userID: 'your bot user ID',
  hosts: {
    // see lavalink.js docs
  },
});

Reference

See the lavalink.js docs for details on BaseCluster, BaseNode, and any other options.

ClusterManager extends BaseCluster

  • constructor(client: Discord.Client, options?: ClusterManagerOptions)
interface ClusterManagerOptions {
	nodes?: ClusterNodeOptions[];
	filter: (node: ClusterNode, guildID: string) => boolean;
}

NodeManager extends BaseNode

  • constructor(client: Discord.Client, options?: BaseNodeOptions)

About

Lavalink Library based on lavalink.js made for discord.js

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published