fix: Discord sends null when there's no team
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user