|
@@ -59,8 +59,8 @@ 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 && model.Team.Value != null) |
|
|
|
|
|
Team = RestTeam.Create(Discord, model.Team.Value); |
|
|
|
|
|
|
|
|
if (model.Team != null) |
|
|
|
|
|
Team = RestTeam.Create(Discord, model.Team); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// <exception cref="InvalidOperationException">Unable to update this object from a different application token.</exception> |
|
|
/// <exception cref="InvalidOperationException">Unable to update this object from a different application token.</exception> |
|
|