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

pull/501/head
NikkyAI 6 years ago committed by Wim
parent bd3a3b6eaf
commit 54adb0509e

@ -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

Loading…
Cancel
Save