Document supported operations in discord.User

This commit is contained in:
Rapptz 2015-11-27 17:59:22 -05:00
parent 9fb2186785
commit 7c060ee7f6

View File

@ -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