mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-05 11:27:13 +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):
|
class User(object):
|
||||||
"""Represents a Discord user.
|
"""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:
|
Instance attributes:
|
||||||
|
|
||||||
.. attribute:: name
|
.. attribute:: name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user