From 97fc4bf651adbe90d2ead10cf6fffb419e9ffea1 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 21 Dec 2017 18:55:13 -0500 Subject: [PATCH] Update Emoji.url to point to the GIF version of the animated emoji. --- discord/emoji.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/discord/emoji.py b/discord/emoji.py index 42f4183cd..0b66d1795 100644 --- a/discord/emoji.py +++ b/discord/emoji.py @@ -170,7 +170,8 @@ class Emoji(Hashable): @property def url(self): """Returns a URL version of the emoji.""" - return "https://cdn.discordapp.com/emojis/{0.id}.png".format(self) + _format = 'gif' if self.animated else 'png' + return "https://cdn.discordapp.com/emojis/{0.id}.{1}".format(self, _format) @property def roles(self):