Added the ability to upload .gif avatars
This commit is contained in:
parent
7459d79476
commit
5e31979158
|
@ -138,7 +138,11 @@ class Interaction:
|
|||
if file is None:
|
||||
await self.bot.say(url)
|
||||
else:
|
||||
await self.bot.upload(file, filename='avatar.jpg')
|
||||
if '.gif' in url:
|
||||
filename = 'avatar.gif'
|
||||
else:
|
||||
filename = 'avatar.jpg'
|
||||
await self.bot.upload(file, filename=filename)
|
||||
else:
|
||||
await self.bot.say(url)
|
||||
|
||||
|
|
Loading…
Reference in a new issue