createTestEntitlement

open suspend fun createTestEntitlement(ownerId: Snowflake, ownerType: EntitlementOwnerType): Entitlement(source)

Requests to create a new test entitlement to this SKU for an owner with the given ownerId and ownerType.

Discord will act as though that owner has entitlement to your premium offering.

The returned Entitlement will not contain startsAt and endsAt, as it's valid in perpetuity.

Throws

if something went wrong during the request.


Requests to create a new test entitlement to this SKU for a given user.

Discord will act as though that user has entitlement to your premium offering.

The returned Entitlement will not contain startsAt and endsAt, as it's valid in perpetuity.

Throws

if something went wrong during the request.


Requests to create a new test entitlement to this SKU for a given guild.

Discord will act as though that guild has entitlement to your premium offering.

The returned Entitlement will not contain startsAt and endsAt, as it's valid in perpetuity.

Throws

if something went wrong during the request.