summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-02-14 23:05:16 +0100
committerWim <wim@42.be>2018-02-14 23:05:16 +0100
commit6f78485878e2208a3ab73e13cff5825db57f812d (patch)
treef9a3610edcc01c5ee5d049162b11b628e44ffb24
parentfd0fe3390b3c57da329aeda014e87f9a0a6f7fc0 (diff)
downloadmatterbridge-msglm-6f78485878e2208a3ab73e13cff5825db57f812d.tar.gz
matterbridge-msglm-6f78485878e2208a3ab73e13cff5825db57f812d.tar.bz2
matterbridge-msglm-6f78485878e2208a3ab73e13cff5825db57f812d.zip
Fix role replace
-rw-r--r--vendor/github.com/bwmarrin/discordgo/message.go2
1 files changed, 1 insertions, 1 deletions
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 {