Table of Contents

Method CreateTestEntitlementAsync

Namespace
DSharpPlus.Net
Assembly
DSharpPlus.dll

CreateTestEntitlementAsync(ulong, ulong, ulong, DiscordTestEntitlementOwnerType)

Create a test entitlement which can be granted to a user or a guild

public ValueTask<DiscordEntitlement> CreateTestEntitlementAsync(ulong applicationId, ulong skuId, ulong ownerId, DiscordTestEntitlementOwnerType ownerType)

Parameters

applicationId ulong

The id of the application the SKU belongs to

skuId ulong

The id of the SKU the entitlement belongs to

ownerId ulong

The id of the entity which should recieve the entitlement

ownerType DiscordTestEntitlementOwnerType

The type of the entity which should recieve the entitlement

Returns

ValueTask<DiscordEntitlement>

Returns a partial entitlment