Simple handler for Discord slash commands and events


Keywords
discord, handler, discordjs, discordjs-v13, discordjs-v14, events-handling, slash-commands-handler
License
Apache-2.0
Install
npm install ax-handler@1.0.7

Documentation

Ax Discord Handler

An easy way to make an event and command handler on discord

const handler = require('ax-handler')

Use example

You only need one function to handler your slash commands and events

// The first parameter, is the discord client
// Second parameter, is the name of your folder
handler.eventhandler(client, 'events')
// The first parameter, is the discord client
// Second parameter is the name of the folder
// If you have subfolders, set the third parameter on true
handler.slashhandler(client, 'slashcmd', true)

Output

> Bot is ready
> Slashcommands loaded successfully