diff options
author | Joey Lee <jayd005@gmail.com> | 2018-01-27 00:37:39 +1100 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2018-01-26 08:37:39 -0500 |
commit | 1c7f25773a77ceb9e84feabe3907e7f93f6870e4 (patch) | |
tree | 334f6d4cb875f36af4d0e4fa2930883cd170f0b0 /model/outgoing_webhook.go | |
parent | 540dd9ae942787279c2fe439a9182223c1a11d2c (diff) | |
download | chat-1c7f25773a77ceb9e84feabe3907e7f93f6870e4.tar.gz chat-1c7f25773a77ceb9e84feabe3907e7f93f6870e4.tar.bz2 chat-1c7f25773a77ceb9e84feabe3907e7f93f6870e4.zip |
PLT-3658 Added support for Slack attachments in outgoing webhook response (#7774) (#8102)
Diffstat (limited to 'model/outgoing_webhook.go')
-rw-r--r-- | model/outgoing_webhook.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/model/outgoing_webhook.go b/model/outgoing_webhook.go index 477a277de..b00171845 100644 --- a/model/outgoing_webhook.go +++ b/model/outgoing_webhook.go @@ -46,12 +46,13 @@ type OutgoingWebhookPayload struct { } type OutgoingWebhookResponse struct { - Text *string `json:"text"` - Username string `json:"username"` - IconURL string `json:"icon_url"` - Props StringInterface `json:"props"` - Type string `json:"type"` - ResponseType string `json:"response_type"` + Text *string `json:"text"` + Username string `json:"username"` + IconURL string `json:"icon_url"` + Props StringInterface `json:"props"` + Attachments []*SlackAttachment `json:"attachments"` + Type string `json:"type"` + ResponseType string `json:"response_type"` } const OUTGOING_HOOK_RESPONSE_TYPE_COMMENT = "comment" |