2
0
mirror of https://github.com/42wim/matterbridge synced 2024-11-19 03:25:33 +00:00

Let webhook also replace mentions (discord). Closes #502

This commit is contained in:
Wim 2018-09-22 22:15:19 +02:00
parent 296428d53e
commit bd3a3b6eaf

View File

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