aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-11-27 17:59:22 -0500
committerRapptz <[email protected]>2015-11-27 17:59:22 -0500
commit7c060ee7f61707b8b5e68de27a275ec09e310868 (patch)
treebc1c3ec8d8b2b4e76dfcbde1d97f0fe4f1a75431
parentUpdate to the new colours. (diff)
downloaddiscord.py-7c060ee7f61707b8b5e68de27a275ec09e310868.tar.xz
discord.py-7c060ee7f61707b8b5e68de27a275ec09e310868.zip
Document supported operations in discord.User
-rw-r--r--discord/user.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/discord/user.py b/discord/user.py
index 804850e1..3d3a38c5 100644
--- a/discord/user.py
+++ b/discord/user.py
@@ -27,6 +27,18 @@ DEALINGS IN THE SOFTWARE.
class User(object):
"""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. |
+ +-----------+------------------------------------+
+ | str(x) | Returns the user's name. |
+ +-----------+------------------------------------+
+
Instance attributes:
.. attribute:: name