diff --git a/src/structure/components/observers/CommandHandler.js b/src/structure/components/observers/CommandHandler.js index a4d79f2..1fde0c9 100644 --- a/src/structure/components/observers/CommandHandler.js +++ b/src/structure/components/observers/CommandHandler.js @@ -82,7 +82,6 @@ class CommandHandler extends Observer { const response = await this._parseInteraction(interaction, command); if (await this._parseResponse(invoker, response)) return; - this.logger.info(`${interaction.user.tag} (${interaction.user.id}) is executing ${command.name}`); await this._executeCommand(invoker, response.options); } @@ -131,6 +130,7 @@ class CommandHandler extends Observer { let response = null; const now = Date.now(); try { + this.logger.info(`${invoker.user.tag} (${invoker.user.id}) is executing ${invoker.command.name}`); response = await invoker.command.execute(invoker, options); invoker.command.success(now); } catch (error) {