Table of Contents

Method CreateTestEntitlementAsync

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

CreateTestEntitlementAsync(ulong, ulong, EntitlementOwnerType, CancellationToken)

Creates a test entitlement.

[RequiresFeature(Features.MonetizedApplication)]
public Task<DiscordEntitlement> CreateTestEntitlementAsync(ulong skuId, ulong ownerId, EntitlementOwnerType ownerType, CancellationToken cancellationToken = default)

Parameters

skuId ulong

The sku id to create the entitlement for.

ownerId ulong

The owner id to create the entitlement for.

ownerType EntitlementOwnerType

The owner type to create the entitlement for.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<DiscordEntitlement>

A partial DiscordEntitlement.