module.exports = {
name: Events.ApplicationCommandPermissionsUpdate,
on: true,
/** @param {ApplicationCommand} data @param {Client} client */
async execute(data, client) {
//STUFF HAPPENS HERE
let command;
try {
command = await guild.commands.fetch({ force: true });
console.log(command);
console.log(command.map(c => c.name));
} catch (error) {
return console.log(error);
};
//STUFF HAPPENS AFTER HERE
},
};
module.exports = {
name: Events.ApplicationCommandPermissionsUpdate,
on: true,
/** @param {ApplicationCommand} data @param {Client} client */
async execute(data, client) {
//STUFF HAPPENS HERE
let command;
try {
command = await guild.commands.fetch({ force: true });
console.log(command);
console.log(command.map(c => c.name));
} catch (error) {
return console.log(error);
};
//STUFF HAPPENS AFTER HERE
},
};