diff options
| author | Khazhismel <[email protected]> | 2016-08-02 17:37:31 -0700 |
|---|---|---|
| committer | Khazhismel <[email protected]> | 2016-08-02 17:37:31 -0700 |
| commit | 14c8aed1a32caaeabbdc7ac917fa1cbd6bf84ed5 (patch) | |
| tree | 887b88948d23541fcba2b3b04388b7ab0ed42ab4 | |
| parent | Clean up Emoji documentation. (diff) | |
| download | discord.py-14c8aed1a32caaeabbdc7ac917fa1cbd6bf84ed5.tar.xz discord.py-14c8aed1a32caaeabbdc7ac917fa1cbd6bf84ed5.zip | |
Add emoji url property
| -rw-r--r-- | discord/emoji.py | 5 |
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) |