Table of Contents

Method ConsumeEntitlementAsync

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

ConsumeEntitlementAsync(ulong, CancellationToken)

Consumes an entitlement.

[RequiresFeature(Features.MonetizedApplication)]
public Task<bool> ConsumeEntitlementAsync(ulong entitlementId, CancellationToken cancellationToken = default)

Parameters

entitlementId ulong

The entitlement id to consume.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<bool>

Whether the entitlement was consumed.