📄
Discord Features Handler Docs
  • discord-features-handler documentation
  • Getting Started
    • Quick Start
    • Environment Variables
    • DiscordFeaturesHandler Setup
  • Layout
    • Folder Structure
    • Setting up Commands
      • Setting up Slash Commands
      • Setting up other interactions
    • Setting up Events
  • Built-in
    • Disabling Built-in Commands and Events
    • Built-in Functions
    • Built-in config.js file
    • Built-in Customizable Commands
      • Built-in Help Command
      • Built-in Reload Command
    • Built-in Customizable Events
      • Built-in MessageCreate Event
      • Built-in interactionCreate Event
  • References
    • Roadmap
    • ChangeLog
Powered by GitBook
On this page
  1. Built-in

Disabling Built-in Commands and Events

Don't want to use our built-in and only want a handler to load your commands, events and modules files? Want to use your own variation of these built-in commands and events? Then disable them and look at the setup provided by use and tailor these built-in commands and events to your needs.

Usage

const options = {
    // object for disablinig the built-in command(s) and/or events(s)
    builtin_files = {
      commands: {
        help: false,
        reload: false,
      },
      events: {
        messageCreate: false,
        interactionCreate: false,
      },
    },
    //Object to enable console logs of commands, events and/or modules being loaded
    onLoad_list_files = {
      commands: false,
      events: false,
      modules: false,
    },
    //Disable discord-features-handler unhandledRejection handler
    disableUnhandledRejectionHandler = false,
};

DiscordFeaturesHandler(client, options);

PreviousSetting up EventsNextBuilt-in Functions

Last updated 1 year ago