diff options
author | Brian Olecki <bolecki019@gmail.com> | 2016-11-15 10:43:16 -0500 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-11-15 12:43:16 -0300 |
commit | 6297922ab9561dbf774ab5d51619abfc4a411e40 (patch) | |
tree | 84bbced4d8282f5e8af957164d6e92ae50238011 /webapp/client/client.jsx | |
parent | 1f241af48a9554b6865d1ac79b4261341ab9b3f3 (diff) | |
download | chat-6297922ab9561dbf774ab5d51619abfc4a411e40.tar.gz chat-6297922ab9561dbf774ab5d51619abfc4a411e40.tar.bz2 chat-6297922ab9561dbf774ab5d51619abfc4a411e40.zip |
Add support for editing slash commands (#4335)
Diffstat (limited to 'webapp/client/client.jsx')
-rw-r--r-- | webapp/client/client.jsx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx index 3ce6977f6..90ff75059 100644 --- a/webapp/client/client.jsx +++ b/webapp/client/client.jsx @@ -1457,6 +1457,18 @@ export default class Client { this.track('api', 'api_integrations_created'); } + editCommand(command, success, error) { + request. + post(`${this.getCommandsRoute()}/update`). + set(this.defaultHeaders). + type('application/json'). + accept('application/json'). + send(command). + end(this.handleResponse.bind(this, 'editCommand', success, error)); + + this.track('api', 'api_integrations_created'); + } + deleteCommand(commandId, success, error) { request. post(`${this.getCommandsRoute()}/delete`). |