[Core] fix error in [p]ignore list (#5973)

This commit is contained in:
keqking 2023-01-24 01:19:05 +05:30 committed by GitHub
parent 2168585ee1
commit c390b89bd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5357,7 +5357,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
category_channels.append(channel.category)
if await self.bot._ignored_cache.get_ignored_channel(channel, check_category=False):
channels.append(channel)
for channel in ctx.guild.forum_channels:
for channel in ctx.guild.forums:
if channel.category and channel.category not in category_channels:
if await self.bot._ignored_cache.get_ignored_channel(channel.category):
category_channels.append(channel.category)