Browse Source

Update Emoji.url to point to the GIF version of the animated emoji.

pull/962/head
Rapptz 7 years ago
parent
commit
97fc4bf651
  1. 3
      discord/emoji.py

3
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):

Loading…
Cancel
Save