diff options
author | Wim <wim@42.be> | 2018-02-14 23:05:16 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-02-14 23:05:16 +0100 |
commit | 6f78485878e2208a3ab73e13cff5825db57f812d (patch) | |
tree | f9a3610edcc01c5ee5d049162b11b628e44ffb24 | |
parent | fd0fe3390b3c57da329aeda014e87f9a0a6f7fc0 (diff) | |
download | matterbridge-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.go | 2 |
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 { |