summaryrefslogtreecommitdiffstats
path: root/matterhook
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-09-18 23:43:21 +0200
committerWim <wim@42.be>2017-09-18 23:43:21 +0200
commit18981cb63678732c917cb0e30a58dcf07353cb4f (patch)
tree70c5b3313e1581ad8b756989114f3b4b69050b6c /matterhook
parentffa8f65aa875da499afeb913510f2017b1a69a23 (diff)
downloadmatterbridge-msglm-18981cb63678732c917cb0e30a58dcf07353cb4f.tar.gz
matterbridge-msglm-18981cb63678732c917cb0e30a58dcf07353cb4f.tar.bz2
matterbridge-msglm-18981cb63678732c917cb0e30a58dcf07353cb4f.zip
Add props
Diffstat (limited to 'matterhook')
-rw-r--r--matterhook/matterhook.go15
1 files changed, 8 insertions, 7 deletions
diff --git a/matterhook/matterhook.go b/matterhook/matterhook.go
index b049d84d..1877cd3e 100644
--- a/matterhook/matterhook.go
+++ b/matterhook/matterhook.go
@@ -17,13 +17,14 @@ 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"`
- Attachments interface{} `json:"attachments,omitempty"`
- Type string `json:"type,omitempty"`
+ 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"`
+ Props map[string]interface{} `json:"props"`
}
// IMessage for mattermost outgoing webhook. (received from mattermost)