Skip to content

Commit

Permalink
fixed not seeing subchannels i think
Browse files Browse the repository at this point in the history
  • Loading branch information
JUSTadICE-CHaN authored Sep 20, 2024
1 parent e58ba54 commit eedb706
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Normal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit eedb706

Please sign in to comment.