diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-09-28 12:08:16 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-09-28 09:08:16 -0700 |
commit | f263d2b9510fb557fe075dee5097cb32e2b1e5e2 (patch) | |
tree | 5e7ca4a3b5e44a685b1e1f8761983dd57441a751 /api4/command.go | |
parent | 884cf494cbef36786cb035b14bbbccbb19c122c3 (diff) | |
download | chat-f263d2b9510fb557fe075dee5097cb32e2b1e5e2.tar.gz chat-f263d2b9510fb557fe075dee5097cb32e2b1e5e2.tar.bz2 chat-f263d2b9510fb557fe075dee5097cb32e2b1e5e2.zip |
PLT-7684 Add support to outgoing webhooks and slash commands to set post type and props (#7531)
* Add support to outgoing webhooks and slash commands to set post type and props
* Fix nil access
Diffstat (limited to 'api4/command.go')
-rw-r--r-- | api4/command.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api4/command.go b/api4/command.go index 64426193d..d051d57f6 100644 --- a/api4/command.go +++ b/api4/command.go @@ -305,6 +305,8 @@ func testCommand(c *Context, w http.ResponseWriter, r *http.Request) { rc := &model.CommandResponse{ Text: "test command response " + msg, ResponseType: model.COMMAND_RESPONSE_TYPE_IN_CHANNEL, + Type: "custom_test", + Props: map[string]interface{}{"someprop": "somevalue"}, } w.Write([]byte(rc.ToJson())) |