Command Handler
In this section, we will explain how to work with the Command Handler.
const { SlashCommandBuilder } = require("discord.js");
const Utility = require("../utils/modules/Utility");
module.exports = {
commands: [
{
data: new SlasCommandBuilder()
.setName('test') // Command Name
.setDescription('This is a test addon'), // Command Description
async execute(moi, client, args, {type, send }}) {
// Your code goes here
}
}
]
}Last updated