diff --git a/src/equicordplugins/keywordNotify/index.tsx b/src/equicordplugins/keywordNotify/index.tsx index 573841bdb..68878903d 100644 --- a/src/equicordplugins/keywordNotify/index.tsx +++ b/src/equicordplugins/keywordNotify/index.tsx @@ -392,7 +392,7 @@ export default definePlugin({ let listed = entry.listIds.some(id => id.trim() === m.channel_id || id === m.author.id); if (!listed) { const channel = ChannelStore.getChannel(m.channel_id); - if (channel !== null) { + if (channel != null) { listed = entry.listIds.some(id => id.trim() === channel.guild_id); } } @@ -418,7 +418,7 @@ export default definePlugin({ if (safeMatchesRegex(embed.description, entry.regex, flags) || safeMatchesRegex(embed.title, entry.regex, flags)) { matches = true; break; - } else if (embed.fields !== null) { + } else if (embed.fields != null) { for (const field of embed.fields as Array<{ name: string, value: string; }>) { if (safeMatchesRegex(field.value, entry.regex, flags) || safeMatchesRegex(field.name, entry.regex, flags)) { matches = true;