From 6f78485878e2208a3ab73e13cff5825db57f812d Mon Sep 17 00:00:00 2001 From: Wim Date: Wed, 14 Feb 2018 23:05:16 +0100 Subject: [PATCH] Fix role replace --- vendor/github.com/bwmarrin/discordgo/message.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/github.com/bwmarrin/discordgo/message.go b/vendor/github.com/bwmarrin/discordgo/message.go index 19345b95..4fd468fd 100644 --- a/vendor/github.com/bwmarrin/discordgo/message.go +++ b/vendor/github.com/bwmarrin/discordgo/message.go @@ -237,7 +237,7 @@ func (m *Message) ContentWithMoreMentionsReplaced(s *Session) (content string, e continue } - content = strings.Replace(content, "<&"+role.ID+">", "@"+role.Name, -1) + content = strings.Replace(content, "<@&"+role.ID+">", "@"+role.Name, -1) } content = patternChannels.ReplaceAllStringFunc(content, func(mention string) string {