mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Update Emoji.url to point to the GIF version of the animated emoji.
This commit is contained in:
parent
a6bf792dec
commit
97fc4bf651
@ -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…
x
Reference in New Issue
Block a user