Fix missing pings/mentions in logs

This commit is contained in:
Dragory 2019-05-03 08:08:21 +03:00
parent 2aacf6fe65
commit b8e0f26bf0
6 changed files with 18 additions and 18 deletions

View file

@ -446,7 +446,7 @@ export class ModActionsPlugin extends ZeppelinPlugin<IModActionsPluginConfig> {
this.serverLogs.log(LogType.MEMBER_WARN, {
mod: stripObjectToScalars(mod.user),
member: stripObjectToScalars(memberToWarn, ["user"]),
member: stripObjectToScalars(memberToWarn, ["user", "roles"]),
});
}
@ -945,7 +945,7 @@ export class ModActionsPlugin extends ZeppelinPlugin<IModActionsPluginConfig> {
// Log the action
this.serverLogs.log(LogType.MEMBER_SOFTBAN, {
mod: stripObjectToScalars(mod.user),
member: stripObjectToScalars(memberToSoftban, ["user"]),
member: stripObjectToScalars(memberToSoftban, ["user", "roles"]),
});
}