Add logs for !note
This commit is contained in:
parent
a608fe0163
commit
22a77994f6
3 changed files with 9 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"MEMBER_NOTE": "🖊 Note added on {userMention(user)} by {userMention(mod)}",
|
||||
"MEMBER_WARN": "⚠️ {userMention(member)} was warned by {userMention(mod)}",
|
||||
"MEMBER_MUTE": "🔇 {userMention(user)} was muted indefinitely by {userMention(mod)}",
|
||||
"MEMBER_TIMED_MUTE": "🔇 {userMention(user)} was muted for **{time}** by {userMention(mod)}",
|
||||
|
|
|
@ -72,4 +72,6 @@ export enum LogType {
|
|||
|
||||
MASS_ASSIGN_ROLES,
|
||||
MASS_UNASSIGN_ROLES,
|
||||
|
||||
MEMBER_NOTE,
|
||||
}
|
||||
|
|
|
@ -626,6 +626,12 @@ export class ModActionsPlugin extends ZeppelinPlugin<TConfigSchema> {
|
|||
reason,
|
||||
});
|
||||
|
||||
this.serverLogs.log(LogType.MEMBER_NOTE, {
|
||||
mod: stripObjectToScalars(msg.author),
|
||||
user: stripObjectToScalars(user, ["user", "roles"]),
|
||||
reason,
|
||||
});
|
||||
|
||||
this.sendSuccessMessage(msg.channel, `Note added on **${userName}** (Case #${createdCase.case_number})`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue