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