Added a file name to avatar so that discord embeds it
This commit is contained in:
parent
821f33f5d1
commit
4e0533bb87
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue