File tree Expand file tree Collapse file tree 9 files changed +31
-17
lines changed
Remora.Discord.API.Abstractions/API/Objects/Monetization
Gateway/Events/Monetization
Tests/Remora.Discord.Tests/Samples/Objects/ENTITLEMENT Expand file tree Collapse file tree 9 files changed +31
-17
lines changed Original file line number Diff line number Diff line change @@ -65,12 +65,12 @@ public interface IEntitlement : IPartialEntitlement
6565 /// <summary>
6666 /// Gets the start time at which the entitlement is valid.
6767 /// </summary>
68- new Optional < DateTimeOffset > StartsAt { get ; }
68+ new DateTimeOffset ? StartsAt { get ; }
6969
7070 /// <summary>
7171 /// Gets the end time at which the entitlement is no longer valid.
7272 /// </summary>
73- new Optional < DateTimeOffset > EndsAt { get ; }
73+ new DateTimeOffset ? EndsAt { get ; }
7474
7575 /// <summary>
7676 /// Gets the ID of the guild that is granted access to the entitlement's SKU.
@@ -101,10 +101,10 @@ public interface IEntitlement : IPartialEntitlement
101101 Optional < bool > IPartialEntitlement . IsDeleted => this . IsDeleted ;
102102
103103 /// <inheritdoc/>
104- Optional < DateTimeOffset > IPartialEntitlement . StartsAt => this . StartsAt ;
104+ Optional < DateTimeOffset ? > IPartialEntitlement . StartsAt => this . StartsAt ;
105105
106106 /// <inheritdoc/>
107- Optional < DateTimeOffset > IPartialEntitlement . EndsAt => this . EndsAt ;
107+ Optional < DateTimeOffset ? > IPartialEntitlement . EndsAt => this . EndsAt ;
108108
109109 /// <inheritdoc/>
110110 Optional < Snowflake > IPartialEntitlement . GuildID => this . GuildID ;
Original file line number Diff line number Diff line change @@ -51,10 +51,10 @@ public interface IPartialEntitlement
5151 Optional < bool > IsDeleted { get ; }
5252
5353 /// <inheritdoc cref="IEntitlement.StartsAt"/>
54- Optional < DateTimeOffset > StartsAt { get ; }
54+ Optional < DateTimeOffset ? > StartsAt { get ; }
5555
5656 /// <inheritdoc cref="IEntitlement.EndsAt"/>
57- Optional < DateTimeOffset > EndsAt { get ; }
57+ Optional < DateTimeOffset ? > EndsAt { get ; }
5858
5959 /// <inheritdoc cref="IEntitlement.GuildID"/>
6060 Optional < Snowflake > GuildID { get ; }
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ public record EntitlementCreate
3838 Optional < Snowflake > UserID ,
3939 EntitlementType Type ,
4040 bool IsDeleted ,
41- Optional < DateTimeOffset > StartsAt = default ,
42- Optional < DateTimeOffset > EndsAt = default ,
41+ DateTimeOffset ? StartsAt = null ,
42+ DateTimeOffset ? EndsAt = null ,
4343 Optional < Snowflake > GuildID = default ,
4444 Optional < bool > IsConsumed = default
4545) : IEntitlementCreate ;
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ public record EntitlementDelete
3838 Optional < Snowflake > UserID ,
3939 EntitlementType Type ,
4040 bool IsDeleted ,
41- Optional < DateTimeOffset > StartsAt = default ,
42- Optional < DateTimeOffset > EndsAt = default ,
41+ DateTimeOffset ? StartsAt = null ,
42+ DateTimeOffset ? EndsAt = null ,
4343 Optional < Snowflake > GuildID = default ,
4444 Optional < bool > IsConsumed = default
4545) : IEntitlementDelete ;
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ public record EntitlementUpdate
3838 Optional < Snowflake > UserID ,
3939 EntitlementType Type ,
4040 bool IsDeleted ,
41- Optional < DateTimeOffset > StartsAt = default ,
42- Optional < DateTimeOffset > EndsAt = default ,
41+ DateTimeOffset ? StartsAt = null ,
42+ DateTimeOffset ? EndsAt = null ,
4343 Optional < Snowflake > GuildID = default ,
4444 Optional < bool > IsConsumed = default
4545) : IEntitlementUpdate ;
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ public record Entitlement
3737 Optional < Snowflake > UserID ,
3838 EntitlementType Type ,
3939 bool IsDeleted ,
40- Optional < DateTimeOffset > StartsAt = default ,
41- Optional < DateTimeOffset > EndsAt = default ,
40+ DateTimeOffset ? StartsAt = null ,
41+ DateTimeOffset ? EndsAt = null ,
4242 Optional < Snowflake > GuildID = default ,
4343 Optional < bool > IsConsumed = default
4444) : IEntitlement ;
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ public record PartialEntitlement
3737 Optional < Snowflake > UserID = default ,
3838 Optional < EntitlementType > Type = default ,
3939 Optional < bool > IsDeleted = default ,
40- Optional < DateTimeOffset > StartsAt = default ,
41- Optional < DateTimeOffset > EndsAt = default ,
40+ Optional < DateTimeOffset ? > StartsAt = default ,
41+ Optional < DateTimeOffset ? > EndsAt = default ,
4242 Optional < Snowflake > GuildID = default ,
4343 Optional < bool > IsConsumed = default
4444) : IPartialEntitlement ;
Original file line number Diff line number Diff line change 1+ {
2+ "id" : " 999999999999999999" ,
3+ "sku_id" : " 999999999999999999" ,
4+ "application_id" : " 999999999999999999" ,
5+ "user_id" : " 999999999999999999" ,
6+ "type" : 8 ,
7+ "deleted" : false ,
8+ "starts_at" : null ,
9+ "ends_at" : null ,
10+ "guild_id" : " 999999999999999999" ,
11+ "consumed" : false
12+ }
Original file line number Diff line number Diff line change 33 "sku_id" : " 999999999999999999" ,
44 "application_id" : " 999999999999999999" ,
55 "type" : 8 ,
6- "deleted" : false
6+ "deleted" : false ,
7+ "starts_at" : " 1970-01-01T00:00:00.000000+00:00" ,
8+ "ends_at" : " 1970-01-01T00:00:00.000000+00:00"
79}
You can’t perform that action at this time.
0 commit comments