logs: fix excluded_categories not working

This commit is contained in:
Dragory 2020-12-24 00:48:04 +02:00
parent da820ae3d7
commit f4b13529c6
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -62,7 +62,7 @@ export async function log(pluginData: GuildPluginData<LogsPluginType>, 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;
}
}