1
0
Fork 0
mirror of synced 2024-06-21 12:00:16 +12:00

Added a file name to avatar so that discord embeds it

This commit is contained in:
Phxntxm 2016-12-09 21:38:12 -06:00
parent 821f33f5d1
commit 4e0533bb87

View file

@ -135,7 +135,7 @@ class Interaction:
url = member.avatar_url
if ctx.message.server.me.permissions_in(ctx.message.channel).attach_files:
file = await utilities.download_image(url)
await self.bot.upload(file)
await self.bot.upload(file, filename='avatar.jpg')
else:
await self.bot.say(url)