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

Fix right click bans causing logs with the banned user's username missing

This commit is contained in:
Dragory 2019-04-14 13:26:29 +03:00
parent 2dd6fb22fe
commit 25b986740f
3 changed files with 8 additions and 12 deletions

View file

@ -610,7 +610,7 @@ export class ModActionsPlugin extends ZeppelinPlugin<IModActionsPluginConfig> {
// Log the action
this.serverLogs.log(LogType.MEMBER_KICK, {
mod: stripObjectToScalars(mod.user),
member: stripObjectToScalars(args.member, ["user"]),
user: stripObjectToScalars(args.member.user),
});
}
@ -679,7 +679,7 @@ export class ModActionsPlugin extends ZeppelinPlugin<IModActionsPluginConfig> {
// Log the action
this.serverLogs.log(LogType.MEMBER_BAN, {
mod: stripObjectToScalars(mod.user),
member: stripObjectToScalars(args.member, ["user"]),
user: stripObjectToScalars(args.member.user),
});
}