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
ulongThe id of the application the SKU belongs to
skuId
ulongThe id of the SKU the entitlement belongs to
ownerId
ulongThe id of the entity which should recieve the entitlement
ownerType
DiscordTestEntitlementOwnerTypeThe type of the entity which should recieve the entitlement
Returns
- ValueTask<DiscordEntitlement>
Returns a partial entitlment