3
0
mirror of https://github.com/42wim/matterbridge.git synced 2025-09-01 09:27:35 +02:00

Use names instead of id's for mentions (discord). Fixes

This commit is contained in:
Wim 2016-10-30 22:55:34 +01:00
parent 92d9db5a2d
commit 6f309f2108

@ -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()}
}