summaryrefslogtreecommitdiffstats
path: root/model/incoming_webhook.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-11-06 09:05:32 -0500
committerJoram Wilander <jwawilander@gmail.com>2015-11-06 09:05:32 -0500
commit1ecad4301e6e511a426da5884a54111c5bb7a4fd (patch)
tree114dea884f0a08729f5b6b5f9e45d2e470bedc71 /model/incoming_webhook.go
parent6417d4728dc9351d5bf3180e458be8ce6e1e642f (diff)
parent195728b949a4f3aee75e01f4b0e4a0b2f67850da (diff)
downloadchat-1ecad4301e6e511a426da5884a54111c5bb7a4fd.tar.gz
chat-1ecad4301e6e511a426da5884a54111c5bb7a4fd.tar.bz2
chat-1ecad4301e6e511a426da5884a54111c5bb7a4fd.zip
Merge pull request #1327 from florianorben/PLT-857-2
PLT-857: Support `attachments` for Incoming Webhooks
Diffstat (limited to 'model/incoming_webhook.go')
-rw-r--r--model/incoming_webhook.go11
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 {