mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Clarify mute function comments
This commit is contained in:
parent
27a15ec81f
commit
9256014907
1 changed files with 2 additions and 1 deletions
|
@ -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"])
|
||||
|
|
Loading…
Add table
Reference in a new issue