diff --git a/cogs/modmail.py b/cogs/modmail.py index f648d6a..a90641e 100644 --- a/cogs/modmail.py +++ b/cogs/modmail.py @@ -181,7 +181,7 @@ async def _reply(self, interaction: discord.Interaction, content, attachment, an ) if attachment and re.search( - r'\.(gif|jpe?g|tiff|png|webp)$', str(attachment), re.IGNORECASE + r'\.(gif|jpe?g|tiff|png|webp)(\?[a-zA-Z0-9#-_]*)?$', str(attachment), re.IGNORECASE ): # One attachment, image embed.set_image(url=replyMessage.attachments[0].url)