aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhazhismel <[email protected]>2016-08-02 17:37:31 -0700
committerKhazhismel <[email protected]>2016-08-02 17:37:31 -0700
commit14c8aed1a32caaeabbdc7ac917fa1cbd6bf84ed5 (patch)
tree887b88948d23541fcba2b3b04388b7ab0ed42ab4
parentClean up Emoji documentation. (diff)
downloaddiscord.py-14c8aed1a32caaeabbdc7ac917fa1cbd6bf84ed5.tar.xz
discord.py-14c8aed1a32caaeabbdc7ac917fa1cbd6bf84ed5.zip
Add emoji url property
-rw-r--r--discord/emoji.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/discord/emoji.py b/discord/emoji.py
index 09fa86e5..62d5d196 100644
--- a/discord/emoji.py
+++ b/discord/emoji.py
@@ -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)