Fix duplicate image sending
This commit is contained in:
parent
daacbe247d
commit
5661b64c24
1 changed files with 4 additions and 4 deletions
|
@ -79,10 +79,10 @@ class ModlogMessageCog(commands.Cog):
|
|||
add_file = False
|
||||
if (
|
||||
message.attachments
|
||||
and "image" in message.attachments[0].content_type
|
||||
):
|
||||
if "image" in message.attachments[0].content_type:
|
||||
embed.set_image(url=message.attachments[0].url)
|
||||
elif message.attachments:
|
||||
else:
|
||||
add_file = True
|
||||
embed.set_author(
|
||||
name=message.author.name,
|
||||
|
|
Loading…
Add table
Reference in a new issue