diff options
| author | NCPlayz <[email protected]> | 2019-03-16 21:43:55 +0000 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-03-19 08:24:42 -0400 |
| commit | fb02191b80972a9cf7c3baa765cb3aa84c6f1cfa (patch) | |
| tree | 7a0a5c9aaa5cc5bac26fc51caf4fdffbaee64c26 /discord/role.py | |
| parent | Take back ownership of files from aiohttp for retrying requests. (diff) | |
| download | discord.py-fb02191b80972a9cf7c3baa765cb3aa84c6f1cfa.tar.xz discord.py-fb02191b80972a9cf7c3baa765cb3aa84c6f1cfa.zip | |
Organise documentation
Diffstat (limited to 'discord/role.py')
| -rw-r--r-- | discord/role.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/discord/role.py b/discord/role.py index 217a86c8..7fd435e9 100644 --- a/discord/role.py +++ b/discord/role.py @@ -211,20 +211,20 @@ class Role(Hashable): Parameters ----------- - name: str + name: :class:`str` The new role name to change to. permissions: :class:`Permissions` The new permissions to change to. colour: :class:`Colour` The new colour to change to. (aliased to color as well) - hoist: bool + hoist: :class:`bool` Indicates if the role should be shown separately in the member list. - mentionable: bool + mentionable: :class:`bool` Indicates if the role should be mentionable by others. - position: int + position: :class:`int` The new role's position. This must be below your top role's position or it will fail. - reason: Optional[str] + reason: Optional[:class:`str`] The reason for editing this role. Shows up on the audit log. Raises @@ -269,7 +269,7 @@ class Role(Hashable): Parameters ----------- - reason: Optional[str] + reason: Optional[:class:`str`] The reason for deleting this role. Shows up on the audit log. Raises |