commit 2742435ceb5b8e19c39f2652e68582b4c9378024
Author: Wim <wim@42.be>
Date: Fri Feb 23 00:48:25 2018 +0000
diff --git a/matterhook/matterhook.go b/matterhook/matterhook.go
index 1877cd3..11453e3 100644
--- a/matterhook/matterhook.go
+++ b/matterhook/matterhook.go
@@ -76 +77 @@ import (
"encoding/json"
"fmt"
"github.com/gorilla/schema"
+ "github.com/nlopes/slack"
"io"
"io/ioutil"
"log"
@@ -227 +237 @@ 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"`
}