1
0
Fork 0
mirror of synced 2024-09-29 08:51:53 +13:00

Used the jpeg conversion method, since some browsers do not have webp compatibility

This commit is contained in:
Phxntxm 2017-02-12 20:33:57 -06:00
parent a124eaf89a
commit edf9d9a587

View file

@ -142,6 +142,7 @@ class Interaction:
filename = 'avatar.gif' filename = 'avatar.gif'
else: else:
filename = 'avatar.webp' filename = 'avatar.webp'
file = utils.convert_to_jpeg(file)
await self.bot.upload(file, filename=filename) await self.bot.upload(file, filename=filename)
else: else:
await self.bot.say(url) await self.bot.say(url)