Registering the event
This page shows how to call the command handler to make commands actually work
// `client` is our Discord.js Client
// `commands` is our djs-commands-control Commands object
client.on("message", (message) => {
// Do some stuff
// Call the command handler
commands.messageEvent(message);
// Do some more other stuff
});
// `client` is our Discord.js Client
// `commands` is our djs-commands-control Commands object
client.on("message", commands.messageEvent);
Last modified 2yr ago