discord-features-handler
DiscordFeaturesHandler is a handler for Discord.js commands, slash commands, and discord events
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.
-
Want to jump right in? - Feeling like an eager beaver? Starting by installing the package and setup the folder structure and layout
-
Want to deep dive? – Dive a little deeper by starting with configuring DiscordFeaturesHandlerOptions
- Setting up DiscordJS Events – Create your DiscordJS events to listen for events to handled
- Setting up Commands Files – Create your command files for your DiscordJS bot and allow users to interact with the bot.
- Setting up your bot permissions – Set up and configure your bot permissions for what a user can use with 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.