mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-24 10:02:56 +00:00
Document supported operations in discord.User
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user