Browse Source

fix: log name on interaction fail properly

pull/48/head
Abheek Dhawan 2 years ago
parent
commit
c213d6d83d
Signed by: abheekd GPG Key ID: 7BE81B8C14475B67
  1. 2
      src/events/interactionCreate.ts

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

Loading…
Cancel
Save