From eedb706901dd9d394766504533c0bb32f83ed03f Mon Sep 17 00:00:00 2001 From: JUSTadICE <88615618+JUSTadICE-CHaN@users.noreply.github.com> Date: Fri, 20 Sep 2024 18:04:18 +0100 Subject: [PATCH] fixed not seeing subchannels i think --- Normal.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Normal.py b/Normal.py index 0a5b424..038e375 100644 --- a/Normal.py +++ b/Normal.py @@ -183,9 +183,13 @@ def is_valid_message(self, message): message.author == self.user or message.guild is None or message.guild.id not in self.allowed_guilds or - message.channel.id not in Config.Channels + ( + message.channel.id not in Config.Channels and + not any(message.channel.id in subchannels for subchannels in Config.Channels.values()) + ) ) + def get_main_channel_id(self, channel_id): for main_channel, sub_channels in Config.Channels.items(): if channel_id == main_channel or channel_id in sub_channels: