From 4e0533bb87d746f94c89c48398219908868bcf97 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Fri, 9 Dec 2016 21:38:12 -0600 Subject: [PATCH] Added a file name to avatar so that discord embeds it --- cogs/interaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/interaction.py b/cogs/interaction.py index ee3cdb3..c311cbe 100644 --- a/cogs/interaction.py +++ b/cogs/interaction.py @@ -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)