3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-19 08:05:01 +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

@ -263,14 +263,10 @@ export class LogsPlugin extends ZeppelinPlugin<ILogsPluginConfig> {
);
const mod = relevantAuditLogEntry ? relevantAuditLogEntry.user : unknownUser;
this.guildLogs.log(
LogType.MEMBER_BAN,
{
user: stripObjectToScalars(user),
mod: stripObjectToScalars(mod),
},
user.id,
);
this.guildLogs.log(LogType.MEMBER_BAN, {
mod: stripObjectToScalars(mod),
user: stripObjectToScalars(user),
}, user.id);
}
@d.event("guildBanRemove")