From 9256014907a1589b0a267e8bd5de2a116868c02d Mon Sep 17 00:00:00 2001 From: Dragory Date: Thu, 12 Jul 2018 02:03:07 +0300 Subject: [PATCH] Clarify mute function comments --- src/plugins/ModActions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/ModActions.ts b/src/plugins/ModActions.ts index 301e34aa..ed0f3e92 100644 --- a/src/plugins/ModActions.ts +++ b/src/plugins/ModActions.ts @@ -258,7 +258,7 @@ export class ModActionsPlugin extends Plugin { await args.member.addRole(this.configValue("mute_role"), args.reason); await this.mutes.addOrUpdateMute(args.member.id, muteTime); - // Log the action + // Create a case for this action await this.createModAction( args.member.id, msg.author.id, @@ -299,6 +299,7 @@ export class ModActionsPlugin extends Plugin { if (!messageSent) response += " (failed to message user)"; msg.channel.createMessage(successMessage(response)); + // Log the action this.serverLogs.log(LogType.MEMBER_MUTE, { mod: stripObjectToScalars(msg.member, ["user"]), member: stripObjectToScalars(args.member, ["user"])