aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-05-23 15:03:22 -0400
committerRapptz <[email protected]>2016-05-23 15:03:22 -0400
commitaa45bce212d1e23d5fc85986f6c57e4da8ee1d73 (patch)
tree5873008abb9d1474448163ab0be4fc8f3ef41376
parentClose voice connections before closing the websocket. (diff)
downloaddiscord.py-aa45bce212d1e23d5fc85986f6c57e4da8ee1d73.tar.xz
discord.py-aa45bce212d1e23d5fc85986f6c57e4da8ee1d73.zip
Documentation fixes for role related functions.
-rw-r--r--discord/client.py16
1 files changed, 4 insertions, 12 deletions
diff --git a/discord/client.py b/discord/client.py
index bdbab67b..3e55d652 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -2226,18 +2226,12 @@ class Client:
This does **not** edit the role in place.
- All fields except ``server`` and ``role`` are optional.
+ All fields except ``server`` and ``role`` are optional. To change
+ the position of a role, use :func:`move_role` instead.
.. versionchanged:: 0.8.0
Editing now uses keyword arguments instead of editing the :class:`Role` object directly.
- Note
- -----
- At the moment, the Discord API allows you to set the colour to any
- RGB value. This might change in the future so it is recommended that
- you use the constants in the :class:`Colour` instead such as
- :meth:`Colour.green`.
-
Parameters
-----------
server : :class:`Server`
@@ -2286,8 +2280,6 @@ class Client:
Deletes the specified :class:`Role` for the entire :class:`Server`.
- Works in a similar matter to :func:`edit_role`.
-
Parameters
-----------
server : :class:`Server`
@@ -2359,7 +2351,7 @@ class Client:
You must have the proper permissions to use this function.
- This method does **not** do edit the member in-place.
+ This method does **not** edit the member in-place.
Parameters
-----------
@@ -2402,7 +2394,7 @@ class Client:
call is ``client.replace_roles(member, d, e, c)`` then
the member has the roles ``[d, e, c]``.
- This method does **not** do edit the member in-place.
+ This method does **not** edit the member in-place.
Parameters
-----------