Browse Source

fix: Discord sends null when there's no team

tags/2.3.0
Paulo GitHub 4 years ago
parent
commit
05a1f0a709
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Rest/Entities/RestApplication.cs

+ 1
- 1
src/Discord.Net.Rest/Entities/RestApplication.cs View File

@@ -59,7 +59,7 @@ namespace Discord.Rest
Flags = model.Flags.Value; //TODO: Do we still need this? Flags = model.Flags.Value; //TODO: Do we still need this?
if (model.Owner.IsSpecified) if (model.Owner.IsSpecified)
Owner = RestUser.Create(Discord, model.Owner.Value); Owner = RestUser.Create(Discord, model.Owner.Value);
if (model.Team.IsSpecified)
if (model.Team.IsSpecified && model.Team.Value != null)
Team = RestTeam.Create(Discord, model.Team.Value); Team = RestTeam.Create(Discord, model.Team.Value);
} }




Loading…
Cancel
Save