mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-18 12:04:54 +00:00
@@ -165,7 +165,7 @@ class Emoji(_EmojiTag, AssetMixin):
|
|||||||
@property
|
@property
|
||||||
def url(self) -> str:
|
def url(self) -> str:
|
||||||
""":class:`str`: Returns the URL of the emoji."""
|
""":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}'
|
return f'{Asset.BASE}/emojis/{self.id}.{fmt}'
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@@ -245,7 +245,7 @@ class PartialEmoji(_EmojiTag, AssetMixin):
|
|||||||
if self.is_unicode_emoji():
|
if self.is_unicode_emoji():
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
fmt = 'gif' if self.animated else 'png'
|
fmt = 'webp' if self.animated else 'png'
|
||||||
return f'{Asset.BASE}/emojis/{self.id}.{fmt}'
|
return f'{Asset.BASE}/emojis/{self.id}.{fmt}'
|
||||||
|
|
||||||
async def read(self) -> bytes:
|
async def read(self) -> bytes:
|
||||||
|
Reference in New Issue
Block a user