This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
youys
/
Discord.Net
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
34
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Fix presence NRE
pull/1958/head
quin lynch
3 years ago
parent
f3fb0ff995
commit
9a64a44941
2 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
src/Discord.Net.WebSocket/Entities/Users/SocketGuildUser.cs
+1
-0
src/Discord.Net.WebSocket/Entities/Users/SocketUser.cs
+ 2
- 0
src/Discord.Net.WebSocket/Entities/Users/SocketGuildUser.cs
View File
@@ -176,6 +176,8 @@ namespace Discord.WebSocket
internal override void Update(PresenceModel model)
{
Presence ??= new SocketPresence();
Presence.Update(model);
GlobalUser.Update(model);
}
+ 1
- 0
src/Discord.Net.WebSocket/Entities/Users/SocketUser.cs
View File
@@ -94,6 +94,7 @@ namespace Discord.WebSocket
internal virtual void Update(PresenceModel model)
{
Presence ??= new SocketPresence();
Presence.Update(model);
}
Write
Preview
Loading…
Cancel
Save