messageLogger: make ignoreChannels also ignore threads (#1709)

This commit is contained in:
AutumnVN 2023-09-06 23:50:20 +07:00 committed by GitHub
parent f1b3b3c0a3
commit 315fcf1972
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,6 +206,7 @@ export default definePlugin({
ignoreSelf && message.author?.id === myId ||
ignoreUsers.includes(message.author?.id) ||
ignoreChannels.includes(message.channel_id) ||
ignoreChannels.includes(ChannelStore.getChannel(message.channel_id)?.parent_id) ||
ignoreGuilds.includes(ChannelStore.getChannel(message.channel_id)?.guild_id);
},