more cringe (#2919)
This commit is contained in:
@@ -447,6 +447,10 @@ namespace Discord.WebSocket
|
||||
public Task<IReadOnlyCollection<SKU>> GetSKUsAsync(RequestOptions options = null)
|
||||
=> ClientHelper.ListSKUsAsync(this, options);
|
||||
|
||||
/// <inheritdoc />
|
||||
public Task ConsumeEntitlementAsync(ulong entitlementId, RequestOptions options = null)
|
||||
=> ClientHelper.ConsumeEntitlementAsync(this, entitlementId, options);
|
||||
|
||||
/// <summary>
|
||||
/// Gets entitlements from cache.
|
||||
/// </summary>
|
||||
|
||||
@@ -67,7 +67,7 @@ public class SocketEntitlement : SocketEntity<ulong>, IEntitlement
|
||||
|
||||
ApplicationId = model.ApplicationId;
|
||||
Type = model.Type;
|
||||
IsConsumed = model.IsConsumed;
|
||||
IsConsumed = model.IsConsumed.GetValueOrDefault(false);
|
||||
StartsAt = model.StartsAt.IsSpecified
|
||||
? model.StartsAt.Value
|
||||
: null;
|
||||
|
||||
Reference in New Issue
Block a user