Added nuke command
All checks were successful
Build and Publish / Build and Publish Discord Bot (push) Successful in 28s
Build and Publish / Build and Publish Minecraft Mod (push) Successful in 2m17s

This commit is contained in:
2023-08-17 10:23:15 +02:00
parent ff29cc1c53
commit 5f0de3f326
3 changed files with 25 additions and 1 deletions

View File

@@ -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);
}