Add support for editing slash commands (#4335)

Этот коммит содержится в:
Brian Olecki
2016-11-15 10:43:16 -05:00
коммит произвёл enahum
родитель 1f241af48a
Коммит 6297922ab9
12 изменённых файлов: 942 добавлений и 0 удалений

Просмотреть файл

@@ -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`).