diff --git a/src/Discord.Net.Rest/API/Common/Entitlement.cs b/src/Discord.Net.Rest/API/Common/Entitlement.cs index 218f902687..46d4264269 100644 --- a/src/Discord.Net.Rest/API/Common/Entitlement.cs +++ b/src/Discord.Net.Rest/API/Common/Entitlement.cs @@ -27,7 +27,7 @@ internal class Entitlement public Optional IsConsumed { get; set; } [JsonProperty("starts_at")] - public Optional StartsAt { get; set; } + public DateTimeOffset? StartsAt { get; set; } [JsonProperty("ends_at")] public Optional EndsAt { get; set; } diff --git a/src/Discord.Net.Rest/Entities/AppSubscriptions/RestEntitlement.cs b/src/Discord.Net.Rest/Entities/AppSubscriptions/RestEntitlement.cs index e5fb4ea338..15f24fa05d 100644 --- a/src/Discord.Net.Rest/Entities/AppSubscriptions/RestEntitlement.cs +++ b/src/Discord.Net.Rest/Entities/AppSubscriptions/RestEntitlement.cs @@ -56,9 +56,7 @@ internal void Update(Model model) ApplicationId = model.ApplicationId; Type = model.Type; IsConsumed = model.IsConsumed.GetValueOrDefault(false); - StartsAt = model.StartsAt.IsSpecified - ? model.StartsAt.Value - : null; + StartsAt = model.StartsAt; EndsAt = model.EndsAt.IsSpecified ? model.EndsAt.Value : null; diff --git a/src/Discord.Net.WebSocket/Entities/AppSubscriptions/SocketEntitlement.cs b/src/Discord.Net.WebSocket/Entities/AppSubscriptions/SocketEntitlement.cs index a4b71d9299..9c074c1e49 100644 --- a/src/Discord.Net.WebSocket/Entities/AppSubscriptions/SocketEntitlement.cs +++ b/src/Discord.Net.WebSocket/Entities/AppSubscriptions/SocketEntitlement.cs @@ -68,9 +68,7 @@ internal void Update(Model model) ApplicationId = model.ApplicationId; Type = model.Type; IsConsumed = model.IsConsumed.GetValueOrDefault(false); - StartsAt = model.StartsAt.IsSpecified - ? model.StartsAt.Value - : null; + StartsAt = model.StartsAt; EndsAt = model.EndsAt.IsSpecified ? model.EndsAt.Value : null;