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
|
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(
|
||||||
|
|
Loading…
Add table
Reference in a new issue