aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-04-19 12:29:24 +0100
committerGravatar Chris Lovering <[email protected]>2022-04-19 12:29:24 +0100
commit88088e695269d88a208dd5dab66631acb5775295 (patch)
tree630f30971ce4ef48b5de8fbca4e0d32fcf5377f1
parentchannel.history is now an async iterator, so has no .next() method (diff)
Empty embed descriptions are now None, rather than a sentinal
-rw-r--r--bot/exts/help_channels/_message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/help_channels/_message.py b/bot/exts/help_channels/_message.py
index 40bec74a5..b79697f73 100644
--- a/bot/exts/help_channels/_message.py
+++ b/bot/exts/help_channels/_message.py
@@ -256,7 +256,7 @@ def _match_bot_embed(message: t.Optional[discord.Message], description: str) ->
return False
bot_msg_desc = message.embeds[0].description
- if bot_msg_desc is discord.Embed.Empty:
+ if bot_msg_desc is None:
log.trace("Last message was a bot embed but it was empty.")
return False
return message.author == bot.instance.user and bot_msg_desc.strip() == description.strip()