mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Make supported operations stand out more than attributes.
This commit is contained in:
1 parent
3727618b65
commit
f4e01b3a92
11 files changed
+169
-127
No files matched your search
+20
-16
@@ -177,21 +177,23 @@ class BaseUser(_BaseUser):
|
||||
class ClientUser(BaseUser):
|
||||
"""Represents your Discord user.
|
||||
|
||||
.. describe:: x == y
|
||||
.. container:: operations
|
||||
|
||||
Checks if two users are equal.
|
||||
.. describe:: x == y
|
||||
|
||||
.. describe:: x != y
|
||||
Checks if two users are equal.
|
||||
|
||||
Checks if two users are not equal.
|
||||
.. describe:: x != y
|
||||
|
||||
.. describe:: hash(x)
|
||||
Checks if two users are not equal.
|
||||
|
||||
Return the user's hash.
|
||||
.. describe:: hash(x)
|
||||
|
||||
.. describe:: str(x)
|
||||
Return the user's hash.
|
||||
|
||||
Returns the user's name with discriminator.
|
||||
.. describe:: str(x)
|
||||
|
||||
Returns the user's name with discriminator.
|
||||
|
||||
Attributes
|
||||
-----------
|
||||
@@ -386,21 +388,23 @@ class ClientUser(BaseUser):
|
||||
class User(BaseUser, discord.abc.Messageable):
|
||||
"""Represents a Discord user.
|
||||
|
||||
.. describe:: x == y
|
||||
.. container:: operations
|
||||
|
||||
Checks if two users are equal.
|
||||
.. describe:: x == y
|
||||
|
||||
.. describe:: x != y
|
||||
Checks if two users are equal.
|
||||
|
||||
Checks if two users are not equal.
|
||||
.. describe:: x != y
|
||||
|
||||
.. describe:: hash(x)
|
||||
Checks if two users are not equal.
|
||||
|
||||
Return the user's hash.
|
||||
.. describe:: hash(x)
|
||||
|
||||
.. describe:: str(x)
|
||||
Return the user's hash.
|
||||
|
||||
Returns the user's name with discriminator.
|
||||
.. describe:: str(x)
|
||||
|
||||
Returns the user's name with discriminator.
|
||||
|
||||
Attributes
|
||||
-----------
|
||||
|
||||
Reference in new issue
Block a user