aboutsummaryrefslogtreecommitdiff
path: root/discord/emoji.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-05-13 18:48:14 -0400
committerRapptz <[email protected]>2017-05-13 18:48:14 -0400
commitf73eb087c99a0ee73b9a46500225464ab866c625 (patch)
treec08643f1aa5add45d95f934422b1fc8fd35b1b33 /discord/emoji.py
parentAdd Colour.blurple and Colour.greyple. (diff)
downloaddiscord.py-f73eb087c99a0ee73b9a46500225464ab866c625.tar.xz
discord.py-f73eb087c99a0ee73b9a46500225464ab866c625.zip
Use describe instead of tables for supported operations.
Diffstat (limited to 'discord/emoji.py')
-rw-r--r--discord/emoji.py38
1 files changed, 20 insertions, 18 deletions
diff --git a/discord/emoji.py b/discord/emoji.py
index 3c61b137..02df71d6 100644
--- a/discord/emoji.py
+++ b/discord/emoji.py
@@ -38,24 +38,26 @@ class Emoji(Hashable):
Depending on the way this object was created, some of the attributes can
have a value of ``None``.
- Supported Operations:
-
- +-----------+-----------------------------------------+
- | Operation | Description |
- +===========+=========================================+
- | x == y | Checks if two emoji are the same. |
- +-----------+-----------------------------------------+
- | x != y | Checks if two emoji are not the same. |
- +-----------+-----------------------------------------+
- | hash(x) | Return the emoji's hash. |
- +-----------+-----------------------------------------+
- | iter(x) | Returns an iterator of (field, value) |
- | | pairs. This allows this class to be |
- | | used as an iterable in list/dict/etc. |
- | | constructions. |
- +-----------+-----------------------------------------+
- | str(x) | Returns the emoji rendered for discord. |
- +-----------+-----------------------------------------+
+ .. describe:: x == y
+
+ Checks if two emoji are the same.
+
+ .. describe:: x != y
+
+ Checks if two emoji are not the same.
+
+ .. describe:: hash(x)
+
+ Return the emoji's hash.
+
+ .. describe:: iter(x)
+
+ Returns an iterator of ``(field, value)`` pairs. This allows this class
+ to be used as an iterable in list/dict/etc constructions.
+
+ .. describe:: str(x)
+
+ Returns the emoji rendered for discord.
Attributes
-----------