3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-11 13:07:20 +00:00

logs: fix excluded_categories not working

This commit is contained in:
Dragory 2020-12-24 00:48:04 +02:00
parent 7c68668c15
commit 5499567c23

View file

@ -62,7 +62,7 @@ export async function log(pluginData: GuildPluginData<LogsPluginType>, type: Log
type === LogType.CENSOR || type === LogType.CENSOR ||
type === LogType.CLEAN 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; continue logChannelLoop;
} }
} }