Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions bot/cogs/help_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,11 @@ def match_bot_embed(self, message: t.Optional[discord.Message], description: str
if not message or not message.embeds:
return False

embed = message.embeds[0]
return message.author == self.bot.user and embed.description.strip() == description.strip()
bot_msg_desc = message.embeds[0].description
if bot_msg_desc is discord.Embed.Empty:
log.trace("Last message was a bot embed but it was empty.")
return False
return message.author == self.bot.user and bot_msg_desc.strip() == description.strip()

@staticmethod
def is_in_category(channel: discord.TextChannel, category_id: int) -> bool:
Expand Down