Added a file name to avatar so that discord embeds it
This commit is contained in:
parent
821f33f5d1
commit
4e0533bb87
|
@ -135,7 +135,7 @@ class Interaction:
|
||||||
url = member.avatar_url
|
url = member.avatar_url
|
||||||
if ctx.message.server.me.permissions_in(ctx.message.channel).attach_files:
|
if ctx.message.server.me.permissions_in(ctx.message.channel).attach_files:
|
||||||
file = await utilities.download_image(url)
|
file = await utilities.download_image(url)
|
||||||
await self.bot.upload(file)
|
await self.bot.upload(file, filename='avatar.jpg')
|
||||||
else:
|
else:
|
||||||
await self.bot.say(url)
|
await self.bot.say(url)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue