Revert "PLT-2183 Slash command auto-complete"

Этот коммит содержится в:
Christopher Speller
2016-03-18 13:16:51 -04:00
родитель 6d586c7309
Коммит 35320efe1a
14 изменённых файлов: 151 добавлений и 333 удалений

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

@@ -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),