diff options
| author | Rapptz <[email protected]> | 2015-10-21 20:38:28 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-10-21 20:38:28 -0400 |
| commit | ce9a8ff75b5a17a400a1b9697c5e907e8d283aeb (patch) | |
| tree | b27ee8d44d7e904767be0235d71ca485649f4803 | |
| parent | Better detection for the everyone role. Fixes #23. (diff) | |
| download | discord.py-ce9a8ff75b5a17a400a1b9697c5e907e8d283aeb.tar.xz discord.py-ce9a8ff75b5a17a400a1b9697c5e907e8d283aeb.zip | |
Add note for edit_role about custom RGB colours.
| -rw-r--r-- | discord/client.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/discord/client.py b/discord/client.py index ebc911c1..c2a13618 100644 --- a/discord/client.py +++ b/discord/client.py @@ -1036,6 +1036,13 @@ class Client(object): .. 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 will change in the future so it is recommended that + you use the constants in the :class:`Colour` instead such as + :attr:`Colour.NAVY_BLUE`. + :param server: The :class:`Server` the role belongs to. :param role: The :class:`Role` to edit. :param name: The new role name to change to. (optional) |