Call function to_file

This commit is contained in:
Zeva Rose 2021-08-02 23:52:31 -06:00
parent 85082cbf16
commit daacbe247d

View file

@ -97,5 +97,5 @@ class ModlogMessageCog(commands.Cog):
await channel.send(embed=embed)
else:
await channel.send(
embed=embed, file=(await message.attachments[0].to_file)
embed=embed, file=(await message.attachments[0].to_file())
)