summaryrefslogtreecommitdiffstats
path: root/bridge/discord
diff options
context:
space:
mode:
authorWim <wim@42.be>2016-10-30 22:55:34 +0100
committerWim <wim@42.be>2016-10-30 22:55:34 +0100
commit6f309f2108bfa8b34a4d36917f26f961b1285805 (patch)
tree01da500f2a6a345919f9817be9140a4e1780adc2 /bridge/discord
parent92d9db5a2d6f568e3c21ecf56cde80b32c342868 (diff)
downloadmatterbridge-msglm-6f309f2108bfa8b34a4d36917f26f961b1285805.tar.gz
matterbridge-msglm-6f309f2108bfa8b34a4d36917f26f961b1285805.tar.bz2
matterbridge-msglm-6f309f2108bfa8b34a4d36917f26f961b1285805.zip
Use names instead of id's for mentions (discord). Fixes #66
Diffstat (limited to 'bridge/discord')
-rw-r--r--bridge/discord/discord.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go
index 903c80c7..f1331dd4 100644
--- a/bridge/discord/discord.go
+++ b/bridge/discord/discord.go
@@ -125,7 +125,7 @@ func (b *bdiscord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreat
if b.UseChannelID {
channelName = "ID:" + m.ChannelID
}
- b.Remote <- config.Message{Username: m.Author.Username, Text: m.Content, Channel: channelName,
+ b.Remote <- config.Message{Username: m.Author.Username, Text: m.ContentWithMentionsReplaced(), Channel: channelName,
Origin: b.origin, Protocol: b.protocol, FullOrigin: b.FullOrigin()}
}