Browse Source

Add role colour and hoisting to edit_role.

pull/13/head
Rapptz 10 years ago
parent
commit
c64420f9d3
  1. 4
      discord/client.py

4
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)

Loading…
Cancel
Save