mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-03 18:42:43 +00:00
Document supported operations in discord.User
This commit is contained in:
parent
9fb2186785
commit
7c060ee7f6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user