1
0
Fork 0
mirror of synced 2024-06-26 18:21:15 +12:00

Added the ability to upload .gif avatars

This commit is contained in:
Phxntxm 2017-02-04 14:04:43 -06:00
parent 7459d79476
commit 5e31979158

View file

@ -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)