Fix mentions cuttíng off all text after the mention (discord) (#506)

This commit is contained in:
NikkyAI 2018-09-29 20:02:59 +02:00 committed by Wim
parent bd3a3b6eaf
commit 54adb0509e
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ func (b *Bdiscord) replaceUserMentions(text string) string {
if err != nil {
return m
}
return member.User.Mention()
return strings.Replace(m, "@"+mention, member.User.Mention(), -1)
})
b.Log.Debugf("Message with mention replaced: %s", text)
return text