summaryrefslogtreecommitdiffstats
path: root/webapp/client/client.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/client/client.jsx')
-rw-r--r--webapp/client/client.jsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx
index 5104f34e2..639f2da2e 100644
--- a/webapp/client/client.jsx
+++ b/webapp/client/client.jsx
@@ -1530,6 +1530,21 @@ export default class Client {
this.track('api', 'api_channels_remove_member');
}
+ updateChannelMemberRoles(channelId, userId, newRoles, success, error) {
+ var data = {
+ user_id: userId,
+ new_roles: newRoles
+ };
+
+ request.
+ post(`${this.getChannelNeededRoute(channelId)}/update_member_roles`).
+ set(this.defaultHeaders).
+ type('application/json').
+ accept('application/json').
+ send(data).
+ end(this.handleResponse.bind(this, 'updateChannelMemberRoles', success, error));
+ }
+
// Routes for Commands
listCommands(success, error) {