Browse Source

Fix current user presence

pull/1958/head
quin lynch 3 years ago
parent
commit
a1097dc7bc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.WebSocket/Entities/Users/SocketUser.cs

+ 1
- 1
src/Discord.Net.WebSocket/Entities/Users/SocketUser.cs View File

@@ -56,10 +56,10 @@ namespace Discord.WebSocket
internal SocketUser(DiscordSocketClient discord, ulong id)
: base(discord, id)
{
Presence = new SocketPresence();
}
internal virtual bool Update(ClientState state, Model model)
{
Presence ??= new SocketPresence();
bool hasChanges = false;
if (model.Avatar.IsSpecified && model.Avatar.Value != AvatarId)
{


Loading…
Cancel
Save