From ca2160264a9008648e41bdfe6c85690652b664e0 Mon Sep 17 00:00:00 2001 From: yahharo Date: Tue, 25 Dec 2018 12:27:53 +0900 Subject: [PATCH] Remove ThreadTimeStamp from message struct (#756) - If `thread_ts` valus sent as empty string ("") to Slack, it returns error `invalid_thread_ts` - When API try to send, it use `slack.PostMessageParameters`, not use `message` --- report/slack.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/report/slack.go b/report/slack.go index a6e891ad..4fb73b5c 100644 --- a/report/slack.go +++ b/report/slack.go @@ -39,12 +39,11 @@ type field struct { } type message struct { - Text string `json:"text"` - Username string `json:"username"` - IconEmoji string `json:"icon_emoji"` - Channel string `json:"channel"` - ThreadTimeStamp string `json:"thread_ts"` - Attachments []slack.Attachment `json:"attachments"` + Text string `json:"text"` + Username string `json:"username"` + IconEmoji string `json:"icon_emoji"` + Channel string `json:"channel"` + Attachments []slack.Attachment `json:"attachments"` } // SlackWriter send report to slack