From f4b13529c639927c9105c82ea4a0ae920a582b44 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Thu, 24 Dec 2020 00:48:04 +0200 Subject: [PATCH] logs: fix excluded_categories not working --- backend/src/plugins/Logs/util/log.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Logs/util/log.ts b/backend/src/plugins/Logs/util/log.ts index c38d8dda..a2bccba5 100644 --- a/backend/src/plugins/Logs/util/log.ts +++ b/backend/src/plugins/Logs/util/log.ts @@ -62,7 +62,7 @@ export async function log(pluginData: GuildPluginData, type: Log type === LogType.CENSOR || type === LogType.CLEAN ) { - if (data.channel.parent_id && opts.excluded_categories.includes(data.channel.parent_id)) { + if (data.channel.parentID && opts.excluded_categories.includes(data.channel.parentID)) { continue logChannelLoop; } }