Browse Source

retain fallback case for if user is still null

tags/2.0
Christopher F 7 years ago
parent
commit
c0c565fd7e
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/Discord.Net.WebSocket/DiscordSocketClient.cs

+ 2
- 3
src/Discord.Net.WebSocket/DiscordSocketClient.cs View File

@@ -1429,11 +1429,10 @@ namespace Discord.WebSocket
after = SocketVoiceState.Create(null, data);
}

user = guild.GetUser(data.UserId);
user = guild.GetUser(data.UserId) ?? guild.AddOrUpdateUser(data.Member.Value); //per g250k, this is always sent
if (user == null)
{
user = guild.AddOrUpdateUser(data.Member.Value); //per g250k, this is always sent
//await UnknownGuildUserAsync(type, data.UserId, guild.Id).ConfigureAwait(false);
await UnknownGuildUserAsync(type, data.UserId, guild.Id).ConfigureAwait(false);
return;
}
}


Loading…
Cancel
Save