mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-17 03:09:05 +00:00
Add emoji url property
This commit is contained in:
parent
504fbaafd5
commit
14c8aed1a3
@ -100,3 +100,8 @@ class Emoji(Hashable):
|
|||||||
def created_at(self):
|
def created_at(self):
|
||||||
"""Returns the emoji's creation time in UTC."""
|
"""Returns the emoji's creation time in UTC."""
|
||||||
return utils.snowflake_time(self.id)
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user