From 2ae872c2e88645bb782394b2d45ca04a39c72d60 Mon Sep 17 00:00:00 2001 From: Navy Date: Sat, 19 Jun 2021 23:46:44 +0300 Subject: [PATCH] improvements --- structure/Client.js | 2 +- structure/commands/CannedReply.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/structure/Client.js b/structure/Client.js index 0730428..e707b14 100644 --- a/structure/Client.js +++ b/structure/Client.js @@ -115,7 +115,7 @@ class ModmailClient extends Client { } - this.logger.debug(`Executing command ${command.name}`); + this.logger.debug(`${message.author.tag} is executing command ${command.name}`); const result = await command.execute(message, { args, clean: message.content.replace(`${this.prefix}${commandName}`, '').trim() }).catch((err) => { this.logger.error(`Command ${command.name} errored during execution:\n${err.stack}`); return { diff --git a/structure/commands/CannedReply.js b/structure/commands/CannedReply.js index 5c97c3d..bc3f8db 100644 --- a/structure/commands/CannedReply.js +++ b/structure/commands/CannedReply.js @@ -35,7 +35,7 @@ class CannedReply extends Command { } str += `**${name}:** ${content}\n`; } - if (str.length) await channel.send(str).catch(this.client.logger.error.bind(this.client.logger)); + if (str.length) return channel.send(str).catch(this.client.logger.error.bind(this.client.logger)); return '**__None__**'; } return this.client.modmail.sendCannedResponse({ message, responseName: content.trim(), anon });