@djs-modules/handler v1.3.6
Welcome
Welcome! This is "@djs-modules/handler" module! "@djs-modules/handler" is a module that allows you to make organization of commands/events in your Discord bot.
Installation
IMPORTANT: NodeJS v16.6 or above required for this module!
npm i @djs-modules/handler yarn add @djs-modules/handler
Features
🙂 Easy to use. 👍 DiscordJS v14 Support. 🔑 TypeScript Support. ⚙️ 100% Promise-based
Initialization
To initializate module, you need to write this code in bot main file. Or you can view our example of using this module.
const { Client } = require("discord.js");
const { Handler } = require("@djs-modules/handler");
const client = new Client({
intents: ["GUILDS", "GUILD_MESSAGES"],
});
new Handler({
commandsDir: `./commands`,
slashCommandsDir: `./slashCommands`,
eventsDir: `./events`,
searchPattern: "/**/*{.js,.ts}",
});
Links
Authors: djs-modules, xyligan-gp Discord Tags: WhyMe#1126, ♡ xүℓ[ι]gαη4εg ♡#9457 NodeJS: Click TypeScript: Click Support Server: Click Documentation: Click
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago