aboutsummaryrefslogtreecommitdiff
path: root/discord/member.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/member.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/member.py')
-rw-r--r--discord/member.py30
1 files changed, 17 insertions, 13 deletions
diff --git a/discord/member.py b/discord/member.py
index c5d0f45c..7dc08df4 100644
--- a/discord/member.py
+++ b/discord/member.py
@@ -112,19 +112,23 @@ class Member(discord.abc.Messageable):
This implements a lot of the functionality of :class:`User`.
- Supported Operations:
-
- +-----------+-----------------------------------------------+
- | Operation | Description |
- +===========+===============================================+
- | x == y | Checks if two members are equal. |
- +-----------+-----------------------------------------------+
- | x != y | Checks if two members are not equal. |
- +-----------+-----------------------------------------------+
- | hash(x) | Return the member's hash. |
- +-----------+-----------------------------------------------+
- | str(x) | Returns the member's name with discriminator. |
- +-----------+-----------------------------------------------+
+ .. describe:: x == y
+
+ Checks if two members are equal.
+ Note that this works with :class:`User` instances too.
+
+ .. describe:: x != y
+
+ Checks if two members are not equal.
+ Note that this works with :class:`User` instances too.
+
+ .. describe:: hash(x)
+
+ Returns the member's hash.
+
+ .. describe:: str(x)
+
+ Returns the member's name with the discriminator.
Attributes
----------