ApplicationShorter
Signature
export declare class ApplicationShorter extends BaseShorterProperties
0No properties.
Methods
14Methods
listEmojis(force?: boolean): Promise<ApplicationEmojiStructure[]>;Lists the emojis for the application.
The emojis.
getEmoji(emojiId: string, force?: boolean): Promise<ApplicationEmojiStructure>;Gets an emoji for the application.
emojiId- The ID of the emoji.
The emoji.
createEmoji(raw: ApplicationEmojiResolvable): Promise<ApplicationEmojiStructure>;Creates a new emoji for the application.
body.name- The name of the emoji.
body.image- The [image data string](https://docs.discord.com/developers/reference#image-data) of the emoji.
The created emoji.
editEmoji(emojiId: string, body: RESTPatchAPIApplicationEmojiJSONBody): Promise<ApplicationEmojiStructure>;Edits an emoji for the application.
emojiId- The ID of the emoji.
body.name- The new name of the emoji.
The edited emoji.
deleteEmoji(emojiId: string): Promise<void>;Deletes an emoji for the application.
emojiId- The ID of the emoji.
listEntitlements(query?: RESTGetAPIEntitlementsQuery): Promise<EntitlementStructure[]>;Lists the entitlements for the application.
query- The query parameters.
fetchEntitlement(entitlementId: string): Promise<EntitlementStructure>;Gets one entitlement for the application. https://docs.discord.com/developers/resources/entitlement#get-entitlement
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
entitlementId- The ID of the entitlement.
createTestEntitlement(body: RESTPostAPIEntitlementBody): Promise<EntitlementStructure>;Creates a test entitlement for the application.
body- The body of the request.
deleteTestEntitlement(entitlementId: string): Promise<undefined>;Deletes a test entitlement for the application.
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
The SKUs.
fetch(): Promise<ApplicationStructure>;edit(body: RESTPatchCurrentApplicationJSONBody): Promise<ApplicationStructure>;getActivityInstance(instanceId: string): Promise<RestGetAPIApplicationActivityInstanceResult>;