summaryrefslogtreecommitdiffstats
path: root/bridge/discord/discord.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-09-22 22:15:19 +0200
committerWim <wim@42.be>2018-09-22 22:15:19 +0200
commitbd3a3b6eaf061a6352f858c983bd0a8d14118252 (patch)
treef0bfbe3624ea9d2a537da514ba52827cda75bb00 /bridge/discord/discord.go
parent296428d53e4febb5a82082d3c61628fbd396fd13 (diff)
downloadmatterbridge-msglm-bd3a3b6eaf061a6352f858c983bd0a8d14118252.tar.gz
matterbridge-msglm-bd3a3b6eaf061a6352f858c983bd0a8d14118252.tar.bz2
matterbridge-msglm-bd3a3b6eaf061a6352f858c983bd0a8d14118252.zip
Let webhook also replace mentions (discord). Closes #502
Diffstat (limited to 'bridge/discord/discord.go')
-rw-r--r--bridge/discord/discord.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go
index 0265f843..9d7e2d69 100644
--- a/bridge/discord/discord.go
+++ b/bridge/discord/discord.go
@@ -163,6 +163,7 @@ func (b *Bdiscord) Send(msg config.Message) (string, error) {
}
msg.Text = helper.ClipMessage(msg.Text, MessageLength)
+ msg.Text = b.replaceUserMentions(msg.Text)
err := b.c.WebhookExecute(
wID,
wToken,