Used the jpeg conversion method, since some browsers do not have webp compatibility
This commit is contained in:
parent
a124eaf89a
commit
edf9d9a587
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue