📄
Advanced-Command-Handler Guide
  • Home
  • Concepts
    • CommandHandler
    • Commands
      • Commands Templates
      • CommandContext
      • SubCommands
    • Events
  • Default Commands & Events
  • Utilities
    • BetterEmbed & Embed Templates
    • Logger
    • Miscellaneous
  • v2 to v3 Migration Guide
  • Discord Support
  • Documentation
  • GitHub
Powered by GitBook
On this page
  • Defaults Events
  • Defaults Commands
  • Example

Was this helpful?

Default Commands & Events

PreviousEventsNextBetterEmbed & Embed Templates

Last updated 3 years ago

Was this helpful?

Defaults Events

There is for now only one Default Event which is the message event. To use it, simply execute the function from the CommandHandler Namespace.

Defaults Commands

There is for now only two default Command which are the help and ping command. To use it, simply execute the function from the CommandHandler Namespace.

Both must be used after the create function.

Example

index.js
const {CommandHandler} = require('advanced-command-handler');

CommandHandler
.create({
    commandsDir: 'commands',
    eventsDir: 'events',
})
.useDefaultEvents()
.useDefaultCommands()
.launch({
    token: 'token goes here',
});
useDefaultEvents
useDefaultCommands