summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
Diffstat (limited to 'model')
-rw-r--r--model/outgoing_webhook.go13
1 files changed, 8 insertions, 5 deletions
diff --git a/model/outgoing_webhook.go b/model/outgoing_webhook.go
index 14c6f2269..477a277de 100644
--- a/model/outgoing_webhook.go
+++ b/model/outgoing_webhook.go
@@ -46,13 +46,16 @@ 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"`
+ 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"`
}
+const OUTGOING_HOOK_RESPONSE_TYPE_COMMENT = "comment"
+
func (o *OutgoingWebhookPayload) ToJSON() string {
b, err := json.Marshal(o)
if err != nil {