diff options
author | Florian Orben <florian.orben@gmail.com> | 2015-11-05 23:32:44 +0100 |
---|---|---|
committer | Florian Orben <florian.orben@gmail.com> | 2015-11-05 23:33:21 +0100 |
commit | b085bc2d56bdc98101b8cb50848aee248d42af28 (patch) | |
tree | 9e19e790ed53aa1fbaa4b5c0c5574e03ae801577 /model/incoming_webhook.go | |
parent | 4b6eb56415c2085bc9078836b70b833b1e01a60d (diff) | |
download | chat-b085bc2d56bdc98101b8cb50848aee248d42af28.tar.gz chat-b085bc2d56bdc98101b8cb50848aee248d42af28.tar.bz2 chat-b085bc2d56bdc98101b8cb50848aee248d42af28.zip |
PLT-857: Support for Incoming Webhooks - Try #2
Diffstat (limited to 'model/incoming_webhook.go')
-rw-r--r-- | model/incoming_webhook.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/model/incoming_webhook.go b/model/incoming_webhook.go index be1984244..8ead0da9f 100644 --- a/model/incoming_webhook.go +++ b/model/incoming_webhook.go @@ -24,10 +24,13 @@ type IncomingWebhook struct { } type IncomingWebhookRequest struct { - Text string `json:"text"` - Username string `json:"username"` - IconURL string `json:"icon_url"` - ChannelName string `json:"channel"` + Text string `json:"text"` + Username string `json:"username"` + IconURL string `json:"icon_url"` + ChannelName string `json:"channel"` + Props StringInterface `json:"props"` + Attachments interface{} `json:"attachments"` + Type string `json:"type"` } func (o *IncomingWebhook) ToJson() string { |