📄
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. Layout

Folder Structure

PreviousDiscordFeaturesHandler SetupNextSetting up Commands

Last updated 1 year ago

- Top_level: (where node_modules folder is located at)
  - Second_level
    - Third_level

Example with folder names:

DO NOT PUT files INSIDE your TOP_LEVEL commands folder. FOLDERS ONLY

discord-bot/
├── commands/
│   ├── miscellaneous/   //this can be any name you want
│   │   └── ping.js
├── events/
│   └── ready.js
├── modules/
├── node_modules/
├── .env
├── config.js
├── index.js
├── package-lock.json
└── package.json

The commands folder is based on the built-in structure where we rely on the subfolders to be the category names of the commands inside the subfolders.

We're using the built-in names defined for us, for commands, events, and modules folders

These folders can be renamed to something else tailored to you. Just remember to pass into the DiscordFeaturesHandler options properties the new names of the folders for each change.

Refer to for details on how to create and customize the configuration file to view the pre-made configuration and if you prefer to customize then o look at the pre-made setup to ensure the discord-features-handler will be compatible with the configuration file.

config.js