aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2021-08-16 14:28:40 -0700
committerGravatar MarkKoz <[email protected]>2021-08-16 14:28:40 -0700
commit052ceadc25a3e45b00bf8203e65d03c6798d082c (patch)
tree17107d36383bfa6bd4333eb19edbc1f93059b73d
parentHelpChannels: simplify formatting of category names in dormant msg (diff)
HelpChannels: use utility method to get available channels
-rw-r--r--bot/exts/help_channels/_cog.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/exts/help_channels/_cog.py b/bot/exts/help_channels/_cog.py
index e71e58e7b..cfc9cf477 100644
--- a/bot/exts/help_channels/_cog.py
+++ b/bot/exts/help_channels/_cog.py
@@ -267,9 +267,7 @@ class HelpChannels(commands.Cog):
for channel in channels[:abs(missing)]:
await self.unclaim_channel(channel, closed_on=_channel.ClosingReason.CLEANUP)
- self.available_help_channels = {
- c for c in self.available_category.channels if not _channel.is_excluded_channel(c)
- }
+ self.available_help_channels = set(_channel.get_category_channels(self.available_category))
# Getting channels that need to be included in the dynamic message.
await self.update_available_help_channels()