Skip to content

discord-features-handler

DiscordFeaturesHandler is a handler for Discord.js commands, slash commands, and discord events

npm version npm downloads

Source Code: https://github.com/bng94/discord-features-handler

Changelog: Release Notes


discord-features-handler allows you to follow the Discord.js guide with a few changes, such as using a JavaScript file instead of a JSON file for the config file, using the interactionReply function instead of execute for slash commands, and without creating your own handler for loading commands and events file. This package also supports TypeScript natively, so you can create your bot in JavaScript or TypeScript, based on your preferences.

Some key Features are:

  • Loads Commands File
  • Loads Events File
  • Pre-built messageCreate event to run commands call
  • Pre-built interactionCreate event to run slash commands call
  • String.prototype.toProperCase(): returns a capitalization String function for words in a sentence format.
  • Array.random(): returns a random element of an Array.

You do not need to worry about how to handle and make a command or event run. This package provides a well-versed, all-around handler to create your Discord.js bot. This ensures that all your event, command, and module files are loaded without worrying about how to run these files. The only focus should be on what commands, events, and their functionality you should have for your bot.

Bugs / Support / Suggestions

If you encounter a problem with the bot, please file an issue.

When reporting an issue, please include the following details:

  • Steps to reproduce the issue
  • Expected behavior
  • Actual (unexpected) behavior
  • Any relevant screenshots or logs

Your detailed report will help us resolve the issue as quickly as possible.

Feel free to submit a pull request if you have any suggestions or improvements.