diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-03-18 13:16:51 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-03-18 13:16:51 -0400 |
commit | 35320efe1afad87419992275ba555ddcbfcdf46b (patch) | |
tree | 52925b8521dd4b8c8291499f76c2ed3c278271f8 /model/client.go | |
parent | 6d586c7309cb0ddaca6580dd1520aef4ff554fb5 (diff) | |
download | chat-35320efe1afad87419992275ba555ddcbfcdf46b.tar.gz chat-35320efe1afad87419992275ba555ddcbfcdf46b.tar.bz2 chat-35320efe1afad87419992275ba555ddcbfcdf46b.zip |
Revert "PLT-2183 Slash command auto-complete"
Diffstat (limited to 'model/client.go')
-rw-r--r-- | model/client.go | 7 |
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), |