Added nuke command
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const { Events } = require('discord.js');
|
||||
const { simpleEmbed } = require('../functions/embeds.js');
|
||||
|
||||
module.exports = {
|
||||
name: Events.InteractionCreate,
|
||||
@@ -14,6 +15,7 @@ module.exports = {
|
||||
try {
|
||||
await command.execute(interaction);
|
||||
} catch (error) {
|
||||
await interaction.reply({ embeds: [simpleEmbed('There was an error while executing the command')] });
|
||||
console.error(`Error executing ${interaction.commandName}`);
|
||||
console.error(error);
|
||||
}
|
||||
|
Reference in New Issue
Block a user