Socket
Socket
Sign inDemoInstall

@badboy-discord/discordjs-handler

Package Overview
Dependencies
78
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @badboy-discord/discordjs-handler

discordjs-handler will simplify creating Command and Event Handler for your Discord Bot.


Version published
Maintainers
2
Created

Readme

Source

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}",
});

Authors: badboy-discord, xyligan-gp
Discord Tags: WhyMe#1126, ♡ xүℓ[ι]gαη4εg ♡#9457
NodeJS: Click
TypeScript: Click
Support Server: Click
Website: Click

Keywords

FAQs

Last updated on 15 Jun 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc