summaryrefslogtreecommitdiffstats
path: root/model/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/client.go')
-rw-r--r--model/client.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/model/client.go b/model/client.go
index 68cf11414..f5c8ad641 100644
--- a/model/client.go
+++ b/model/client.go
@@ -363,11 +363,8 @@ func (c *Client) Command(channelId string, command string, suggest bool) (*Resul
}
}
-func (c *Client) ListCommands(channelId string, command string) (*Result, *AppError) {
- m := make(map[string]string)
- m["command"] = command
- m["channelId"] = channelId
- if r, err := c.DoApiPost("/commands/list", MapToJson(m)); err != nil {
+func (c *Client) ListCommands() (*Result, *AppError) {
+ if r, err := c.DoApiGet("/commands/list", "", ""); err != nil {
return nil, err
} else {
return &Result{r.Header.Get(HEADER_REQUEST_ID),