Skip to main content

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

info

DJSeed as of (1/13/2022) depends on on Discord.js version >= 13.5.0

npm i discord.js@v13-lts djseed@v13-lts

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, Intents } = require('djseed')

const bot = new Client('MY_COOL_TOKEN', {
intents: [Intents.FLAGS.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 Intents from Discord.js! If you wish to use other provided classes/methods/typedefs from Discord.js you must import them from it directly!