diff options
| author | 2021-08-16 14:28:40 -0700 | |
|---|---|---|
| committer | 2021-08-16 14:28:40 -0700 | |
| commit | 052ceadc25a3e45b00bf8203e65d03c6798d082c (patch) | |
| tree | 17107d36383bfa6bd4333eb19edbc1f93059b73d | |
| parent | HelpChannels: 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.py | 4 |
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() |