diff --git a/cogs/aimod_cog.py b/cogs/aimod_cog.py index b66a40b..66492b3 100644 --- a/cogs/aimod_cog.py +++ b/cogs/aimod_cog.py @@ -2127,9 +2127,10 @@ CRITICAL: Do NOT output anything other than the required JSON response. if message.author.bot: print(f"Ignoring message {message.id} from bot.") return + embed_urls = [embed.url for embed in message.embeds if embed.url] link_urls = ( - self.extract_direct_attachment_urls(message.content) - if message.content + self.extract_direct_attachment_urls(" ".join(embed_urls)) + if embed_urls else [] ) # Ignore messages without content, attachments, or direct attachment links