mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-22 19:22:38 +01:00
Add extra debug info (discord)
This commit is contained in:
parent
cec086994e
commit
f66d5f1e58
@ -25,7 +25,7 @@ func (b *Bdiscord) getNick(user *discordgo.User) string {
|
||||
// If we didn't find nick, search for it.
|
||||
member, err := b.c.GuildMember(b.guildID, user.ID)
|
||||
if err != nil {
|
||||
b.Log.Warnf("Failed to fetch information for member %#v: %s", user, err)
|
||||
b.Log.Warnf("Failed to fetch information for member %#v on guild %#v: %s", user, b.guildID, err)
|
||||
return user.Username
|
||||
} else if member == nil {
|
||||
b.Log.Warnf("Got no information for member %#v", user)
|
||||
|
Loading…
Reference in New Issue
Block a user