aboutsummaryrefslogtreecommitdiff
path: root/discord/user.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/user.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/user.py')
-rw-r--r--discord/user.py56
1 files changed, 30 insertions, 26 deletions
diff --git a/discord/user.py b/discord/user.py
index 2f3bfade..e7171b3c 100644
--- a/discord/user.py
+++ b/discord/user.py
@@ -175,19 +175,21 @@ class BaseUser:
class ClientUser(BaseUser):
"""Represents your Discord user.
- Supported Operations:
-
- +-----------+---------------------------------------------+
- | Operation | Description |
- +===========+=============================================+
- | x == y | Checks if two users are equal. |
- +-----------+---------------------------------------------+
- | x != y | Checks if two users are not equal. |
- +-----------+---------------------------------------------+
- | hash(x) | Return the user's hash. |
- +-----------+---------------------------------------------+
- | str(x) | Returns the user's name with discriminator. |
- +-----------+---------------------------------------------+
+ .. describe:: x == y
+
+ Checks if two users are equal.
+
+ .. describe:: x != y
+
+ Checks if two users are not equal.
+
+ .. describe:: hash(x)
+
+ Return the user's hash.
+
+ .. describe:: str(x)
+
+ Returns the user's name with discriminator.
Attributes
-----------
@@ -382,19 +384,21 @@ class ClientUser(BaseUser):
class User(BaseUser, discord.abc.Messageable):
"""Represents a Discord user.
- Supported Operations:
-
- +-----------+---------------------------------------------+
- | Operation | Description |
- +===========+=============================================+
- | x == y | Checks if two users are equal. |
- +-----------+---------------------------------------------+
- | x != y | Checks if two users are not equal. |
- +-----------+---------------------------------------------+
- | hash(x) | Return the user's hash. |
- +-----------+---------------------------------------------+
- | str(x) | Returns the user's name with discriminator. |
- +-----------+---------------------------------------------+
+ .. describe:: x == y
+
+ Checks if two users are equal.
+
+ .. describe:: x != y
+
+ Checks if two users are not equal.
+
+ .. describe:: hash(x)
+
+ Return the user's hash.
+
+ .. describe:: str(x)
+
+ Returns the user's name with discriminator.
Attributes
-----------