From 345129264bdff22743d91a41fd49416990430f14 Mon Sep 17 00:00:00 2001 From: skkiesel Date: Fri, 3 Nov 2017 14:07:30 -0400 Subject: [PATCH] use 'as_user' when sending messages and replies --- slack/slack.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slack/slack.go b/slack/slack.go index b22f622..ade25ef 100644 --- a/slack/slack.go +++ b/slack/slack.go @@ -209,6 +209,7 @@ func (s *Slack) SendMessageType(channel, message string, meMessage bool) (string url.Values{"token": {s.config.Slack.Token}, "channel": {channel}, "text": {message}, + "as_user": {"true"}, }) if err != nil { @@ -258,6 +259,7 @@ func (s *Slack) ReplyToMessageIdentifier(channel, message, identifier string) (s url.Values{"token": {s.config.Slack.Token}, "channel": {channel}, "text": {message}, + "as_user": {"true"}, "thread_ts": {identifier}, })