aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar TizzySaurus <[email protected]>2021-08-11 09:57:02 +0100
committerGravatar GitHub <[email protected]>2021-08-11 09:57:02 +0100
commite77a0d91ec1623e5f0312e906e66077ad3890fbc (patch)
tree6b2d7878b6bfe30be42e3f7e60055d80b1294837
parentMake DORMANT_MSG a string instead of f-string (diff)
Change bot.get_channel to utils.channels.try_get_channel
-rw-r--r--bot/exts/help_channels/_cog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/help_channels/_cog.py b/bot/exts/help_channels/_cog.py
index 6f8472069..03e891271 100644
--- a/bot/exts/help_channels/_cog.py
+++ b/bot/exts/help_channels/_cog.py
@@ -387,7 +387,7 @@ class HelpChannels(commands.Cog):
)
log.trace(f"Sending dormant message for #{channel} ({channel.id}).")
- available_category = self.bot.get_channel(constants.Categories.help_available)
+ available_category = await channel_utils.try_get_channel(constants.Categories.help_available)
embed = discord.Embed(
description=_message.DORMANT_MSG.format(
dormant=channel.category.name,