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
|
@property
|
||||||
def url(self):
|
def url(self):
|
||||||
"""Returns a URL version of the emoji."""
|
"""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
|
@property
|
||||||
def roles(self):
|
def roles(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user