summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 12d2e918..66e27256 100644
--- a/bridge/discord/discord.go
+++ b/bridge/discord/discord.go
@@ -169,10 +169,11 @@ func (b *bdiscord) getNick(user *discordgo.User) string {
}
}
// if we didn't find nick, search for it
- b.userMemberMap[user.ID], err = b.c.GuildMember(b.guildID, user.ID)
+ member, err := b.c.GuildMember(b.guildID, user.ID)
if err != nil {
return user.Username
}
+ b.userMemberMap[user.ID] = member
// only return if nick is set
if b.userMemberMap[user.ID].Nick != "" {
return b.userMemberMap[user.ID].Nick