From 62291baadb5400d58198879536e2807e06627274 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Fri, 31 Mar 2023 19:56:01 +1100 Subject: [PATCH] Fix spelling --- src/events/interactionCreate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/events/interactionCreate.ts b/src/events/interactionCreate.ts index d2aac06..f1d4dd0 100644 --- a/src/events/interactionCreate.ts +++ b/src/events/interactionCreate.ts @@ -12,8 +12,8 @@ export default { commandFile.default.run(client, interaction); commandFile.uses ? commandFile.uses++ : commandFile.uses = 1; } catch (error){ - console.log(`An error occured while running command "${commandFile.name}"`, error, error.stack); - return interaction.reply('An error occured while executing that command.'); + console.log(`An error occurred while running command "${interaction.commandName} ${interaction.options.getSubcommand(false) ?? ''}"`, error, error.stack); + return interaction.reply('An error occurred while executing that command.'); } } }