1.2.4 • Published 2 years ago
@badboy-discord/discordjs-handler v1.2.4
Welcome
Welcome! This is "discordjs-handler" module! This is module that will simplify creating Command and Event Handlers for you Discord Bot!
Installation
Please note: NodeJS v16.6 or above required for this module!
$ npm i @badboy-discord/discordjs-handler
Features
🙂 Easy to use. 👍 Beginner friendly. 🔑 TypeScript Support. ⚙️ 100% Promise-based
Initialization
To initializate module, you need to write this code in bot main file. Or you can view our examples folder.
const { Client } = require("discord.js");
const { Handler } = require("discordjs-handler");
const client = new Client({
intents: ["GUILDS", "GUILD_MESSAGES"],
});
const handler = new Handler({
commandsDir: `${__dirname}/commands`,
slashCommandsDir: `${__dirname}/slashCommands`,
eventsDir: `${__dirname}/events`,
searchPattern: "**/*{.js,.ts}",
});
Links
Authors: badboy-discord, xyligan-gp Discord Tags: WhyMe#1126, ♡ xүℓ[ι]gαη4εg ♡#9457 NodeJS: Click TypeScript: Click Support Server: Click Website: Click