class MonetizationAPI

export declare class MonetizationAPI

Constructors

constructor(
rest: REST
)

Constructs a new instance of the MonetizationAPI class

createTestEntitlement(
applicationId: Snowflake
options?: Pick<RequestData, 'signal'>
) : Promise<Partial<Omit<APIEntitlement, "ends_at" | "starts_at">>>

Creates a test entitlement for an application's SKU.

See also: https://discord.com/developers/docs/monetization/entitlements#create-test-entitlement

deleteTestEntitlement(
applicationId: Snowflake
entitlementId: Snowflake
options?: Pick<RequestData, 'signal'>
) : Promise<void>

Deletes a test entitlement for an application's SKU.

See also: https://discord.com/developers/docs/monetization/entitlements#delete-test-entitlement

getEntitlements(
applicationId: Snowflake
options?: Pick<RequestData, 'signal'>
) : Promise<RESTGetAPIEntitlementsResult>

Fetches the entitlements for an application.

See also: https://discord.com/developers/docs/monetization/entitlements#list-entitlements

getSKUs(
options: Snowflake
{ signal }?: Pick<RequestData, 'signal'>
) : Promise<RESTGetAPISKUsResult>

Fetches the SKUs for an application.

See also: https://discord.com/developers/docs/monetization/skus#list-skus