Fix duplicate for real

This commit is contained in:
Zeva Rose 2021-08-02 23:54:47 -06:00
parent da7b05d26c
commit 99282874bb

View file

@ -77,9 +77,7 @@ class ModlogMessageCog(commands.Cog):
) )
add_file = False add_file = False
if ( if message.attachments:
message.attachments
):
if "image" in message.attachments[0].content_type: if "image" in message.attachments[0].content_type:
embed.set_image(url=message.attachments[0].url) embed.set_image(url=message.attachments[0].url)
else: else:
@ -93,7 +91,7 @@ class ModlogMessageCog(commands.Cog):
text=f"{message.author.name}#{message.author.discriminator}" text=f"{message.author.name}#{message.author.discriminator}"
+ f" | {message.author.id}" + f" | {message.author.id}"
) )
if add_file: if not add_file:
await channel.send(embed=embed) await channel.send(embed=embed)
else: else:
await channel.send( await channel.send(