Getting Started
About
DJSeed (Dee-Jey-Es, See-Duh) aims to be a quality of life addon for the popular Discord interaction library Discord.js. It will eventually offer a bunch of tools which can be found on the Roadmap once its made. Currently DJSeed offers sharding and multithreading (clusters) which is quite frankly the most asked for thing. So win, win... right?
Installation
DJSeed as of (9/02/2022) depends on on Discord.js version >= 14.3.0
- npm
- yarn
- pnpm
npm i discord.js djseed
yarn add discord.js djseed
pnpm add discord.js djseed
Basic Usage
This is the absolute basic way to use DJSeed, currently the only thing we offer is multithreading so doing this will do absolutely nothing other than prepare you for multithreading.
Client
const { Client, GatewayIntentBits } = require('djseed')
const bot = new Client('MY_COOL_TOKEN', {
intents: [GatewayIntentBits.Guilds],
})
bot.on('ready', () => {
console.info(`Logged in as ${bot.user.username}#${bot.user.discriminator}!`)
console.info(`Multithreading is ${bot.cluster ? 'enabled' : 'disabled'}!`)
})
bot.login()
Extra Notes
DJSeed only exports GatewayIntentBits
from Discord.js!
If you wish to use other provided classes/methods/typedefs from Discord.js
you must import them from it directly!