aboutsummaryrefslogtreecommitdiff
path: root/discord/emoji.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2020-12-17 22:21:16 -0500
committerRapptz <[email protected]>2020-12-17 22:21:45 -0500
commit3fea697ba566c21b78bb1dbd97a88c5be7e0b3d2 (patch)
treec09d7d19d1a8fdd4c342acded3e58661dc4bf23c /discord/emoji.py
parentAdd Emoji.url_as (diff)
downloaddiscord.py-3fea697ba566c21b78bb1dbd97a88c5be7e0b3d2.tar.xz
discord.py-3fea697ba566c21b78bb1dbd97a88c5be7e0b3d2.zip
Add versionadded string for Emoji.url_as
Diffstat (limited to 'discord/emoji.py')
-rw-r--r--discord/emoji.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/discord/emoji.py b/discord/emoji.py
index 05338b74..733980e9 100644
--- a/discord/emoji.py
+++ b/discord/emoji.py
@@ -132,7 +132,7 @@ class Emoji(_EmojiTag):
@property
def url(self):
""":class:`Asset`: Returns the asset of the emoji.
-
+
This is equivalent to calling :meth:`url_as` with
the default parameters (i.e. png/gif detection).
"""
@@ -160,7 +160,9 @@ class Emoji(_EmojiTag):
"""Returns an :class:`Asset` for the emoji's url.
The format must be one of 'webp', 'jpeg', 'jpg', 'png' or 'gif'.
- 'gif' is only valid for animated emojis.
+ 'gif' is only valid for animated emojis.
+
+ .. versionadded:: 1.6
Parameters
-----------