aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-05-27 14:03:43 -0400
committerRapptz <[email protected]>2016-05-27 14:03:50 -0400
commit70cc5eb1bb1ba24f5fafae54f6a9a37638cf0c63 (patch)
treec943f72218208404d78ef4a888f403c54d0a81f3
parentReference the Discord UI in the permission documentation. (diff)
downloaddiscord.py-70cc5eb1bb1ba24f5fafae54f6a9a37638cf0c63.tar.xz
discord.py-70cc5eb1bb1ba24f5fafae54f6a9a37638cf0c63.zip
Allow to edit mentionable property in Client.edit_role.
-rw-r--r--discord/client.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py
index 3e55d652..b0c920b3 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -2246,6 +2246,8 @@ class Client:
The new colour to change to. (aliased to color as well)
hoist : bool
Indicates if the role should be shown separately in the online list.
+ mentionable : bool
+ Indicates if the role should be mentionable by others.
Raises
-------
@@ -2264,7 +2266,8 @@ class Client:
'name': fields.get('name', role.name),
'permissions': fields.get('permissions', role.permissions).value,
'color': color.value,
- 'hoist': fields.get('hoist', role.hoist)
+ 'hoist': fields.get('hoist', role.hoist),
+ 'mentionable': fields.get('mentionable', role.mentionable)
}
r = yield from self.session.patch(url, data=utils.to_json(payload), headers=self.headers)