Fix duplicate for real
This commit is contained in:
parent
da7b05d26c
commit
99282874bb
1 changed files with 2 additions and 4 deletions
|
@ -77,9 +77,7 @@ class ModlogMessageCog(commands.Cog):
|
|||
)
|
||||
|
||||
add_file = False
|
||||
if (
|
||||
message.attachments
|
||||
):
|
||||
if message.attachments:
|
||||
if "image" in message.attachments[0].content_type:
|
||||
embed.set_image(url=message.attachments[0].url)
|
||||
else:
|
||||
|
@ -93,7 +91,7 @@ class ModlogMessageCog(commands.Cog):
|
|||
text=f"{message.author.name}#{message.author.discriminator}"
|
||||
+ f" | {message.author.id}"
|
||||
)
|
||||
if add_file:
|
||||
if not add_file:
|
||||
await channel.send(embed=embed)
|
||||
else:
|
||||
await channel.send(
|
||||
|
|
Loading…
Add table
Reference in a new issue