From 1c7f25773a77ceb9e84feabe3907e7f93f6870e4 Mon Sep 17 00:00:00 2001 From: Joey Lee Date: Sat, 27 Jan 2018 00:37:39 +1100 Subject: PLT-3658 Added support for Slack attachments in outgoing webhook response (#7774) (#8102) --- model/outgoing_webhook.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'model') 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" -- cgit v1.2.3-1-g7c22