Use webp as the default emoji URL format

Fix #10331
This commit is contained in:
Rapptz
2025-10-14 17:20:32 -04:00
parent 6d19bc763c
commit 9c327df45a
2 changed files with 2 additions and 2 deletions

View File

@@ -245,7 +245,7 @@ class PartialEmoji(_EmojiTag, AssetMixin):
if self.is_unicode_emoji():
return ''
fmt = 'gif' if self.animated else 'png'
fmt = 'webp' if self.animated else 'png'
return f'{Asset.BASE}/emojis/{self.id}.{fmt}'
async def read(self) -> bytes: