This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
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
Attempt to patch the GameParty nullref
Not sure if this works, needs a more proper solution in the future anyways
pull/920/head
Christopher F
7 years ago
parent
7b2ddd027c
commit
5ce85deb9d
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
src/Discord.Net.WebSocket/Extensions/EntityExtensions.cs
+ 2
- 0
src/Discord.Net.WebSocket/Extensions/EntityExtensions.cs
View File
@@ -56,6 +56,8 @@
public static GameParty ToEntity(this API.GameParty model)
{
// todo: proper fix for this
if (model == null) return null;
// Discord will probably send bad data since they don't validate anything
int current = 0, cap = 0;
if (model.Size.Length == 2)
Write
Preview
Loading…
Cancel
Save