diff options
| author | 2021-08-11 12:34:14 +0100 | |
|---|---|---|
| committer | 2021-08-11 12:34:14 +0100 | |
| commit | 99bfb15037ce7a6f88a403f8c1d2ab36d852874a (patch) | |
| tree | 8c4459f2f9b67f7b7bc6309e261736c20bdfc4ec | |
| parent | Change bot.get_channel to utils.channels.try_get_channel (diff) | |
Fetch dormant category rather than use channel.category
channel.category doesn't get updated in cache so the category ends up still linking to "In Use", whereas we want the "Dormant".
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/help_channels/_cog.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/help_channels/_cog.py b/bot/exts/help_channels/_cog.py index 03e891271..afaf9b0bd 100644 --- a/bot/exts/help_channels/_cog.py +++ b/bot/exts/help_channels/_cog.py @@ -387,10 +387,11 @@ class HelpChannels(commands.Cog): ) log.trace(f"Sending dormant message for #{channel} ({channel.id}).") + dormant_category = await channel_utils.try_get_channel(constants.Categories.help_dormant) available_category = await channel_utils.try_get_channel(constants.Categories.help_available) embed = discord.Embed( description=_message.DORMANT_MSG.format( - dormant=channel.category.name, + dormant=dormant_category.name, available=available_category.name, asking_guide=_message.ASKING_GUIDE_URL ) |