From 65950def3f641ed3317e8cce12d74e17fd2a784b Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 24 Oct 2024 20:40:14 -0400 Subject: [PATCH] interaction changes --- discord/events/InteractionCreate.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/discord/events/InteractionCreate.ts b/discord/events/InteractionCreate.ts index 32d04ec..db44f4f 100644 --- a/discord/events/InteractionCreate.ts +++ b/discord/events/InteractionCreate.ts @@ -13,8 +13,9 @@ export default class InteractionCreate extends DiscordEvent { if (!command) return console.error(`No command matching ${interaction.commandName} was found.`); try { await command.execute(interaction); + console.info(`[Info - Discord] Command '${interaction.commandName}' executed by '${interaction.user.username}'`); } catch (error) { - console.error(error); + console.error(`Error executing command '${interaction.commandName}': by '${interaction.user.username}'\n${error}`); if (interaction.replied || interaction.deferred) { await interaction.followUp({ content: 'There was an error while executing this command!', ephemeral: true }); } else {