From c213d6d83da5d346810243f3808a766821c80387 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Fri, 22 Jul 2022 18:05:15 -0500 Subject: [PATCH] fix: log name on interaction fail properly --- src/events/interactionCreate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/interactionCreate.ts b/src/events/interactionCreate.ts index 5dcc701..ea5ea28 100644 --- a/src/events/interactionCreate.ts +++ b/src/events/interactionCreate.ts @@ -17,7 +17,7 @@ export async function execute(interaction) { await command.execute(interaction); } catch (error) { - log({ logger: 'interaction', content: `Interaction ${interaction.name} failed!`, level: 'error' }); + log({ logger: 'interaction', content: `Interaction ${interaction.commandName} failed!`, level: 'error' }); await interaction.reply({ content: 'There was an error while executing this command!', ephemeral: true }); } }