This commit is contained in:
Erik 2022-05-11 20:25:26 +03:00
parent becfa586ab
commit 99344c580d
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -82,7 +82,6 @@ class CommandHandler extends Observer {
const response = await this._parseInteraction(interaction, command); const response = await this._parseInteraction(interaction, command);
if (await this._parseResponse(invoker, response)) return; 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); await this._executeCommand(invoker, response.options);
} }
@ -131,6 +130,7 @@ class CommandHandler extends Observer {
let response = null; let response = null;
const now = Date.now(); const now = Date.now();
try { try {
this.logger.info(`${invoker.user.tag} (${invoker.user.id}) is executing ${invoker.command.name}`);
response = await invoker.command.execute(invoker, options); response = await invoker.command.execute(invoker, options);
invoker.command.success(now); invoker.command.success(now);
} catch (error) { } catch (error) {