diff options
| author | 2020-03-29 17:13:02 -0700 | |
|---|---|---|
| committer | 2020-03-29 17:13:02 -0700 | |
| commit | 1509d3b1c39fac825d5e5a09fd0caf780db7c91c (patch) | |
| tree | 2b27c8a397d7d2dfbfda6aa3ec2f8df87f22910a | |
| parent | HelpChannels: remove positions from element names (diff) | |
BotCog: fix AttributeError getting a category for a DMChannel
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/bot.py | 2 |
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 = ( |