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 f9989e8faf
commit 7f76a31a26
2 changed files with 2 additions and 2 deletions

View File

@@ -165,7 +165,7 @@ class Emoji(_EmojiTag, AssetMixin):
@property
def url(self) -> str:
""":class:`str`: Returns the URL of the emoji."""
fmt = 'gif' if self.animated else 'png'
fmt = 'webp' if self.animated else 'png'
return f'{Asset.BASE}/emojis/{self.id}.{fmt}'
@property

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: