3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-18 23:55:02 +00:00

Add 'reason' variable to mod action logs

This commit is contained in:
Dragory 2020-05-22 22:18:54 +03:00
parent dca678989e
commit a608fe0163
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
2 changed files with 11 additions and 0 deletions

View file

@ -277,11 +277,13 @@ export class MutesPlugin extends ZeppelinPlugin<TConfigSchema> {
mod: stripObjectToScalars(mod),
user: stripObjectToScalars(user),
time: timeUntilUnmute,
reason,
});
} else {
this.serverLogs.log(LogType.MEMBER_MUTE, {
mod: stripObjectToScalars(mod),
user: stripObjectToScalars(user),
reason,
});
}
@ -356,11 +358,13 @@ export class MutesPlugin extends ZeppelinPlugin<TConfigSchema> {
mod: stripObjectToScalars(mod),
user: stripObjectToScalars(user),
time: timeUntilUnmute,
reason: caseArgs.reason,
});
} else {
this.serverLogs.log(LogType.MEMBER_UNMUTE, {
mod: stripObjectToScalars(mod),
user: stripObjectToScalars(user),
reason: caseArgs.reason,
});
}