aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bot/cogs/bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/bot.py b/bot/cogs/bot.py
index 267892cc3..f0ca2b175 100644
--- a/bot/cogs/bot.py
+++ b/bot/cogs/bot.py
@@ -225,7 +225,7 @@ class BotCog(Cog, name="Bot"):
properly formatted Python syntax highlighting codeblocks.
"""
is_help_channel = (
- msg.channel.category
+ getattr(msg.channel, "category", None)
and msg.channel.category.id in (Categories.help_available, Categories.help_in_use)
)
parse_codeblock = (