this object is fucked but at least its not missing props now (#2956)

This commit is contained in:
Mihail Gribkov
2024-07-04 00:00:49 +03:00
committed by GitHub
parent ae497945b4
commit 6b691b1ad2
3 changed files with 79 additions and 47 deletions

View File

@@ -38,9 +38,12 @@ namespace Discord.Rest
public static RoleTags ToEntity(this API.RoleTags model)
{
return new RoleTags(
model.BotId.IsSpecified ? model.BotId.Value : null,
model.IntegrationId.IsSpecified ? model.IntegrationId.Value : null,
model.IsPremiumSubscriber.IsSpecified);
model.BotId.ToNullable(),
model.IntegrationId.ToNullable(),
model.IsPremiumSubscriber.IsSpecified,
model.SubscriptionListingId.ToNullable(),
model.IsAvailableForPurchase.IsSpecified,
model.GuildConnections.IsSpecified);
}
public static API.Embed ToModel(this Embed entity)
{