diff --git a/discord/emoji.py b/discord/emoji.py index de6b47b69..efea38c75 100644 --- a/discord/emoji.py +++ b/discord/emoji.py @@ -165,8 +165,8 @@ class Emoji(_EmojiTag, AssetMixin): @property def url(self) -> str: """:class:`str`: Returns the URL of the emoji.""" - fmt = 'webp' if self.animated else 'png' - return f'{Asset.BASE}/emojis/{self.id}.{fmt}' + end = 'webp?animated=true' if self.animated else 'png' + return f'{Asset.BASE}/emojis/{self.id}.{end}' @property def roles(self) -> List[Role]: diff --git a/discord/partial_emoji.py b/discord/partial_emoji.py index bbfbc099d..d028244c0 100644 --- a/discord/partial_emoji.py +++ b/discord/partial_emoji.py @@ -245,8 +245,8 @@ class PartialEmoji(_EmojiTag, AssetMixin): if self.is_unicode_emoji(): return '' - fmt = 'webp' if self.animated else 'png' - return f'{Asset.BASE}/emojis/{self.id}.{fmt}' + end = 'webp?animated=true' if self.animated else 'png' + return f'{Asset.BASE}/emojis/{self.id}.{end}' async def read(self) -> bytes: """|coro|