summaryrefslogtreecommitdiffstats
path: root/bridge/discord
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-06-18 15:44:54 +0200
committerWim <wim@42.be>2017-06-18 15:44:54 +0200
commit2ddc4f7ae91a51bc8fa279fdab3c7d64600e1a25 (patch)
tree060c4b14360809d4981cbf3b3b6701e84c48af54 /bridge/discord
parent2dd402675d774eec8a3d4b062afb6a5eaf6f884c (diff)
downloadmatterbridge-msglm-2ddc4f7ae91a51bc8fa279fdab3c7d64600e1a25.tar.gz
matterbridge-msglm-2ddc4f7ae91a51bc8fa279fdab3c7d64600e1a25.tar.bz2
matterbridge-msglm-2ddc4f7ae91a51bc8fa279fdab3c7d64600e1a25.zip
Add UserID to each message. Closes #200
Diffstat (limited to 'bridge/discord')
-rw-r--r--bridge/discord/discord.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go
index 66e27256..3d244962 100644
--- a/bridge/discord/discord.go
+++ b/bridge/discord/discord.go
@@ -142,7 +142,8 @@ func (b *bdiscord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreat
m.Message.Content = b.stripCustomoji(m.Message.Content)
m.Message.Content = b.replaceChannelMentions(m.Message.Content)
b.Remote <- config.Message{Username: username, Text: m.ContentWithMentionsReplaced(), Channel: channelName,
- Account: b.Account, Avatar: "https://cdn.discordapp.com/avatars/" + m.Author.ID + "/" + m.Author.Avatar + ".jpg"}
+ Account: b.Account, Avatar: "https://cdn.discordapp.com/avatars/" + m.Author.ID + "/" + m.Author.Avatar + ".jpg",
+ UserID: m.Author.ID}
}
func (b *bdiscord) memberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) {