mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-08-12 06:58:10 +00:00
Let webhook also replace mentions (discord). Closes #502
This commit is contained in:
@@ -163,6 +163,7 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
msg.Text = helper.ClipMessage(msg.Text, MessageLength)
|
msg.Text = helper.ClipMessage(msg.Text, MessageLength)
|
||||||
|
msg.Text = b.replaceUserMentions(msg.Text)
|
||||||
err := b.c.WebhookExecute(
|
err := b.c.WebhookExecute(
|
||||||
wID,
|
wID,
|
||||||
wToken,
|
wToken,
|
||||||
|
Reference in New Issue
Block a user