File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed
Entities/AppSubscriptions
Discord.Net.WebSocket/Entities/AppSubscriptions Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ internal class Entitlement
2727 public Optional < bool > IsConsumed { get ; set ; }
2828
2929 [ JsonProperty ( "starts_at" ) ]
30- public Optional < DateTimeOffset > StartsAt { get ; set ; }
30+ public DateTimeOffset ? StartsAt { get ; set ; }
3131
3232 [ JsonProperty ( "ends_at" ) ]
3333 public Optional < DateTimeOffset ? > EndsAt { get ; set ; }
Original file line number Diff line number Diff line change @@ -56,9 +56,7 @@ internal void Update(Model model)
5656 ApplicationId = model . ApplicationId ;
5757 Type = model . Type ;
5858 IsConsumed = model . IsConsumed . GetValueOrDefault ( false ) ;
59- StartsAt = model . StartsAt . IsSpecified
60- ? model . StartsAt . Value
61- : null ;
59+ StartsAt = model . StartsAt ;
6260 EndsAt = model . EndsAt . IsSpecified
6361 ? model . EndsAt . Value
6462 : null ;
Original file line number Diff line number Diff line change @@ -68,9 +68,7 @@ internal void Update(Model model)
6868 ApplicationId = model . ApplicationId ;
6969 Type = model . Type ;
7070 IsConsumed = model . IsConsumed . GetValueOrDefault ( false ) ;
71- StartsAt = model . StartsAt . IsSpecified
72- ? model . StartsAt . Value
73- : null ;
71+ StartsAt = model . StartsAt ;
7472 EndsAt = model . EndsAt . IsSpecified
7573 ? model . EndsAt . Value
7674 : null ;
You can’t perform that action at this time.
0 commit comments