Add emoji url property

This commit is contained in:
Khazhismel committed 2016-08-02 17:37:31 -07:00
1 parent 504fbaafd5
commit 14c8aed1a3
1 file changed
+5
+5
View File
@@ -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)