CDHandler
  • CDHandler Documentation
  • Links
    • NPM Page
    • GitHub Repository
    • Example Bots using CDHandler
    • Discord Server
  • Development
    • Changelog
    • Contribute
    • Issues and Feature Requests
  • Using CDHandler
    • Installation
    • Main File
    • Commands
      • Examples
      • Slash Commands
    • Intellisense
    • Events
    • Features
    • Prefixes
  • Other Packages
    • CDGen
    • CDColours
    • CDCommands
Powered by GitBook
On this page

Was this helpful?

  1. Using CDHandler

Commands

Here you can see all the command options/parameters.

  • name - [String] | The name of the command.

  • aliases - [Array] | An array of aliases for the command.

  • cooldown - [Number | String] Just to display on the help menu.

  • cooldownMessage - [String] The response message if the cooldown timeout didn't expired

  • minArgs - [Number] The minimum arguments required for a command

  • maxArgs - [Number] | The maximum arguments for a command

  • argsMessage - [String] | The response for if a user has too many or not enough arguments for a command

  • description - [String] | The command description

  • usage - [String] | The command usage

  • example - [String] | A example

  • dev - [Boolean] | If the command should be locked to developers only (Defined in the main file)

  • devMessage - [String] | The response message for if a non-dev runs a developer only command

  • nsfw - [Boolean] | If the command should be locked to NSFW channels nsfwMessage - String | The response message for if a user runs a NSFW command in a SFW channel

  • permissions - [Array] | Permissions the user needs to run the command

  • permissionsMessage - [String] | The response message for if a user does not have all the required permissions

  • botPermissions - [Array] | Permissions the bot requires to run the command

  • botPermissionsMessage - [String] | The response message for if the bot does not have the requried permissions to run a command

  • category - [String] | The category the command is in

  • locked - [Boolean] | Locks the command

  • lockedMessage - [String] | The response message for a locked command

  • hidden - [Boolean] | Makes the command completely invisible for help command

  • hidden2 - [Boolean] | Makes the command partially invisible for help command

  • servers - [Array] | List of guilds where the command can be ran

  • serversMessage - [String] | The response message for if the command wasn't ran in the specific servers

PreviousMain FileNextExamples

Last updated 4 years ago

Was this helpful?