3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 20:35:02 +00:00

Add logs for !note

This commit is contained in:
Dragory 2020-05-22 22:21:56 +03:00
parent a608fe0163
commit 22a77994f6
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
3 changed files with 9 additions and 0 deletions

View file

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