mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-14 21:31:50 +00:00
Add logging to muting and mute expiring
This commit is contained in:
parent
dff9ba15eb
commit
38295e8aa7
1 changed files with 9 additions and 0 deletions
|
@ -368,6 +368,11 @@ export class ModActionsPlugin extends Plugin {
|
|||
)
|
||||
);
|
||||
}
|
||||
|
||||
this.serverLogs.log(LogType.MEMBER_MUTE, {
|
||||
mod: stripObjectToScalars(msg.member, ["user"]),
|
||||
member: stripObjectToScalars(args.member, ["user"])
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -590,6 +595,10 @@ export class ModActionsPlugin extends Plugin {
|
|||
} catch (e) {} // tslint:disable-line
|
||||
|
||||
await this.mutes.clear(member.id);
|
||||
|
||||
this.serverLogs.log(LogType.MEMBER_UNMUTE, {
|
||||
member: stripObjectToScalars(member, ["user"])
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue