mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Add role colour and hoisting to edit_role.
This commit is contained in:
1 parent
608384dd4f
commit
c64420f9d3
1 file changed
+3
-1
+3
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user