Skip to content

ApplicationShorter

Signature

export declare class ApplicationShorter extends BaseShorter

Methods

getEmoji(emojiId: string, force?: boolean): Promise<ApplicationEmojiStructure>;

Gets an emoji for the application.

Parameters
emojiId
The ID of the emoji.
Returns

The emoji.

deleteEmoji(emojiId: string): Promise<void>;

Deletes an emoji for the application.

Parameters
emojiId
The ID of the emoji.
fetchEntitlement(entitlementId: string): Promise<EntitlementStructure>;

Gets one entitlement for the application. https://docs.discord.com/developers/resources/entitlement#get-entitlement

Parameters
entitlementId
The ID of the entitlement.
consumeEntitlement(entitlementId: string): Promise<undefined>;

Consumes an entitlement for the application. Only works for consumable one-time purchase SKUs. Discord answers with 204 on success. https://docs.discord.com/developers/resources/entitlement#consume-an-entitlement

Parameters
entitlementId
The ID of the entitlement.
deleteTestEntitlement(entitlementId: string): Promise<undefined>;

Deletes a test entitlement for the application.

Parameters
entitlementId
The ID of the entitlement.
listSKUs(): Promise<RESTGetAPISKUsResult>;

Lists the SKUs for the application. This keeps the raw REST return. Use client.monetization.listSKUs() when you want structures with the SKU helpers instead. https://docs.discord.com/developers/resources/sku#list-skus

Returns

The SKUs.