From 6f309f2108bfa8b34a4d36917f26f961b1285805 Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 30 Oct 2016 22:55:34 +0100 Subject: [PATCH] Use names instead of id's for mentions (discord). Fixes #66 --- bridge/discord/discord.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()} }