diff options
| author | Rapptz <[email protected]> | 2017-05-20 02:08:34 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-05-20 02:08:34 -0400 |
| commit | f4e01b3a9289b294ad559263fed0826c111700b2 (patch) | |
| tree | b64b3ce601c9f7d1e9be8381e86146686647afce /discord/emoji.py | |
| parent | Kill remaining references to discord.Channel in documentation. (diff) | |
| download | discord.py-f4e01b3a9289b294ad559263fed0826c111700b2.tar.xz discord.py-f4e01b3a9289b294ad559263fed0826c111700b2.zip | |
Make supported operations stand out more than attributes.
Diffstat (limited to 'discord/emoji.py')
| -rw-r--r-- | discord/emoji.py | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/discord/emoji.py b/discord/emoji.py index 02df71d6..8c880b5d 100644 --- a/discord/emoji.py +++ b/discord/emoji.py @@ -38,26 +38,28 @@ class Emoji(Hashable): Depending on the way this object was created, some of the attributes can have a value of ``None``. - .. describe:: x == y + .. container:: operations - Checks if two emoji are the same. + .. describe:: x == y - .. describe:: x != y + Checks if two emoji are the same. - Checks if two emoji are not the same. + .. describe:: x != y - .. describe:: hash(x) + Checks if two emoji are not the same. - Return the emoji's hash. + .. describe:: hash(x) - .. describe:: iter(x) + Return the emoji's hash. - Returns an iterator of ``(field, value)`` pairs. This allows this class - to be used as an iterable in list/dict/etc constructions. + .. describe:: iter(x) - .. describe:: str(x) + Returns an iterator of ``(field, value)`` pairs. This allows this class + to be used as an iterable in list/dict/etc constructions. - Returns the emoji rendered for discord. + .. describe:: str(x) + + Returns the emoji rendered for discord. Attributes ----------- |