1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-05-16 10:49:24 +00:00

Add emoji url property

This commit is contained in:
Khazhismel 2016-08-02 17:37:31 -07:00
parent 504fbaafd5
commit 14c8aed1a3

@ -100,3 +100,8 @@ class Emoji(Hashable):
def created_at(self):
"""Returns the emoji's creation time in UTC."""
return utils.snowflake_time(self.id)
@property
def url(self):
"""Returns a URL version of the emoji."""
return "https://discordcdn.com/emojis/{0.id}.png".format(self)