mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Add role colour and hoisting to edit_role.
This commit is contained in:
parent
608384dd4f
commit
c64420f9d3
@ -1006,7 +1006,9 @@ class Client(object):
|
|||||||
|
|
||||||
payload = {
|
payload = {
|
||||||
'name': role.name,
|
'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)
|
response = requests.patch(url, json=payload, headers=self.headers)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user