4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-07-11 13:06:28 +00:00

Specify correct GuildID on unknown user query (discord). Fixes #879 (#894)

This commit is contained in:
Wim
2019-09-15 20:25:42 +02:00
committed by GitHub
parent 9b320cd43f
commit 0abf4d5d5d
2 changed files with 4 additions and 4 deletions

View File

@ -89,7 +89,7 @@ func (b *Bdiscord) messageCreate(s *discordgo.Session, m *discordgo.MessageCreat
// set username
if !b.GetBool("UseUserName") {
rmsg.Username = b.getNick(m.Author)
rmsg.Username = b.getNick(m.Author, m.GuildID)
} else {
rmsg.Username = m.Author.Username
if b.GetBool("UseDiscriminator") {