This page shows how to call the command handler to make commands actually work
We want to do other things in the Message event
// `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
});
We only want to call the command handler
// `client` is our Discord.js Client
// `commands` is our djs-commands-control Commands object
client.on("message", commands.messageEvent);