diff options
author | Wim <wim@42.be> | 2015-11-28 23:57:47 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2015-11-28 23:57:47 +0100 |
commit | 5c1b02c7a31c8f9d1bc68a5530dcddaeaf8b56b5 (patch) | |
tree | eb30ace2a34c9641556b751ab0461a8e4bdc6903 | |
parent | 38fce68609515d215a3e69674916fa5e9e28a6c9 (diff) | |
download | matterbridge-msglm-5c1b02c7a31c8f9d1bc68a5530dcddaeaf8b56b5.tar.gz matterbridge-msglm-5c1b02c7a31c8f9d1bc68a5530dcddaeaf8b56b5.tar.bz2 matterbridge-msglm-5c1b02c7a31c8f9d1bc68a5530dcddaeaf8b56b5.zip |
Add support for Type and Attachments in incoming webhooks
-rw-r--r-- | matterhook/matterhook.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/matterhook/matterhook.go b/matterhook/matterhook.go index 85335792..f750212f 100644 --- a/matterhook/matterhook.go +++ b/matterhook/matterhook.go @@ -16,11 +16,13 @@ import ( // OMessage for mattermost incoming webhook. (send to mattermost) type OMessage struct { - Channel string `json:"channel,omitempty"` - IconURL string `json:"icon_url,omitempty"` - IconEmoji string `json:"icon_emoji,omitempty"` - UserName string `json:"username,omitempty"` - Text string `json:"text"` + Channel string `json:"channel,omitempty"` + IconURL string `json:"icon_url,omitempty"` + IconEmoji string `json:"icon_emoji,omitempty"` + UserName string `json:"username,omitempty"` + Text string `json:"text"` + Attachments interface{} `json:"attachments,omitempty"` + Type string `json:"type,omitempty"` } // IMessage for mattermost outgoing webhook. (received from mattermost) |