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