aboutsummaryrefslogtreecommitdiff
path: root/discord/role.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-05-20 02:08:34 -0400
committerRapptz <[email protected]>2017-05-20 02:08:34 -0400
commitf4e01b3a9289b294ad559263fed0826c111700b2 (patch)
treeb64b3ce601c9f7d1e9be8381e86146686647afce /discord/role.py
parentKill remaining references to discord.Channel in documentation. (diff)
downloaddiscord.py-f4e01b3a9289b294ad559263fed0826c111700b2.tar.xz
discord.py-f4e01b3a9289b294ad559263fed0826c111700b2.zip
Make supported operations stand out more than attributes.
Diffstat (limited to 'discord/role.py')
-rw-r--r--discord/role.py34
1 files changed, 18 insertions, 16 deletions
diff --git a/discord/role.py b/discord/role.py
index d19a5bec..c4ccbf9d 100644
--- a/discord/role.py
+++ b/discord/role.py
@@ -35,37 +35,39 @@ from .utils import snowflake_time
class Role(Hashable):
"""Represents a Discord role in a :class:`Guild`.
- .. describe:: x == y
+ .. container:: operations
- Checks if two roles are equal.
+ .. describe:: x == y
- .. describe:: x != y
+ Checks if two roles are equal.
- Checks if two roles are not equal.
+ .. describe:: x != y
- .. describe:: x > y
+ Checks if two roles are not equal.
- Checks if a role is higher than another in the hierarchy.
+ .. describe:: x > y
- .. describe:: x < y
+ Checks if a role is higher than another in the hierarchy.
- Checks if a role is lower than another in the hierarchy.
+ .. describe:: x < y
- .. describe:: x >= y
+ Checks if a role is lower than another in the hierarchy.
- Checks if a role is higher or equal to another in the hierarchy.
+ .. describe:: x >= y
- .. describe:: x <= y
+ Checks if a role is higher or equal to another in the hierarchy.
- Checks if a role is lower or equal to another in the hierarchy.
+ .. describe:: x <= y
- .. describe:: hash(x)
+ Checks if a role is lower or equal to another in the hierarchy.
- Return the role's hash.
+ .. describe:: hash(x)
- .. describe:: str(x)
+ Return the role's hash.
- Returns the role's name.
+ .. describe:: str(x)
+
+ Returns the role's name.
Attributes
----------