diff options
author | Wim <wim@42.be> | 2018-02-23 00:48:25 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-02-23 00:48:25 +0100 |
commit | 4f2ae7b73f967e1d5448094f07f472405341ab71 (patch) | |
tree | db2985bcd75a9929883d87ebdc1a9e55a32666d8 | |
parent | f82a9cc7ac5fc9d3ea880b60121546b643943285 (diff) | |
download | matterbridge-msglm-4f2ae7b73f967e1d5448094f07f472405341ab71.tar.gz matterbridge-msglm-4f2ae7b73f967e1d5448094f07f472405341ab71.tar.bz2 matterbridge-msglm-4f2ae7b73f967e1d5448094f07f472405341ab71.zip |
Add slack attachment support to matterhook
-rw-r--r-- | matterhook/matterhook.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/matterhook/matterhook.go b/matterhook/matterhook.go index 1877cd3e..11453e34 100644 --- a/matterhook/matterhook.go +++ b/matterhook/matterhook.go @@ -7,6 +7,7 @@ import ( "encoding/json" "fmt" "github.com/gorilla/schema" + "github.com/nlopes/slack" "io" "io/ioutil" "log" @@ -22,7 +23,7 @@ type OMessage struct { IconEmoji string `json:"icon_emoji,omitempty"` UserName string `json:"username,omitempty"` Text string `json:"text"` - Attachments interface{} `json:"attachments,omitempty"` + Attachments []slack.Attachment `json:"attachments,omitempty"` Type string `json:"type,omitempty"` Props map[string]interface{} `json:"props"` } |