From b82196058abe136f213932a9d9d006825dcbd8c8 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Wed, 29 Jul 2020 01:15:00 +0300 Subject: [PATCH] Fix error when logging bans --- backend/src/plugins/Logs/events/LogsGuildBanEvts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Logs/events/LogsGuildBanEvts.ts b/backend/src/plugins/Logs/events/LogsGuildBanEvts.ts index e5805364..25c4c808 100644 --- a/backend/src/plugins/Logs/events/LogsGuildBanEvts.ts +++ b/backend/src/plugins/Logs/events/LogsGuildBanEvts.ts @@ -11,7 +11,7 @@ export const LogsGuildBanAddEvt = logsEvent({ const user = meta.args.user; const relevantAuditLogEntry = await findRelevantAuditLogEntry( - pluginData.guildConfig, + pluginData.guild, ErisConstants.AuditLogActions.MEMBER_BAN_ADD, user.id, );