aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-10-13 05:13:29 -0400
committerRapptz <[email protected]>2015-10-13 05:39:59 -0400
commitc64420f9d309e78d4e6c3f1d2d13f09ed11c4cbb (patch)
treeca2489dcab96b78458daab5aa5e33d1ff6554238
parentParse role colour and other new role attributes. (diff)
downloaddiscord.py-c64420f9d309e78d4e6c3f1d2d13f09ed11c4cbb.tar.xz
discord.py-c64420f9d309e78d4e6c3f1d2d13f09ed11c4cbb.zip
Add role colour and hoisting to edit_role.
-rw-r--r--discord/client.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py
index 8f6c133d..b9920793 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -1006,7 +1006,9 @@ class Client(object):
payload = {
'name': role.name,
- 'permissions': role.permissions.value
+ 'permissions': role.permissions.value,
+ 'color': role.color,
+ 'hoist': role.hoist
}
response = requests.patch(url, json=payload, headers=self.headers)