Replace stupid nicknames.
This commit is contained in:
parent
4cac19c3f9
commit
98bf6b57d3
1 changed files with 2 additions and 0 deletions
|
@ -77,6 +77,8 @@ func (m *Message) ContentWithMentionsReplaced() string {
|
||||||
for _, user := range m.Mentions {
|
for _, user := range m.Mentions {
|
||||||
content = strings.Replace(content, fmt.Sprintf("<@%s>", user.ID),
|
content = strings.Replace(content, fmt.Sprintf("<@%s>", user.ID),
|
||||||
fmt.Sprintf("@%s", user.Username), -1)
|
fmt.Sprintf("@%s", user.Username), -1)
|
||||||
|
content = strings.Replace(content, fmt.Sprintf("<@!%s>", user.ID),
|
||||||
|
fmt.Sprintf("@%s", user.Username), -1)
|
||||||
}
|
}
|
||||||
return content
|
return content
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue