diff options
Diffstat (limited to 'webapp/client')
-rw-r--r-- | webapp/client/client.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx index d8218490e..398ce4f83 100644 --- a/webapp/client/client.jsx +++ b/webapp/client/client.jsx @@ -1494,13 +1494,13 @@ export default class Client { end(this.handleResponse.bind(this, 'listCommands', success, error)); } - executeCommand(channelId, command, suggest, success, error) { + executeCommand(command, commandArgs, success, error) { request. post(`${this.getCommandsRoute()}/execute`). set(this.defaultHeaders). type('application/json'). accept('application/json'). - send({channelId, command, suggest: String(suggest)}). + send({command, ...commandArgs}). end(this.handleResponse.bind(this, 'executeCommand', success, error)); this.track('api', 'api_integrations_used'); |