seyfert
Version:
The most advanced framework for discord bots
57 lines (56 loc) • 2.59 kB
TypeScript
import { type EntitlementStructure } from '../../client';
import type { RESTGetAPIEntitlementsQuery, RESTPostAPIApplicationEmojiJSONBody, RESTPostAPIEntitlementBody } from '../../types';
import { BaseShorter } from './base';
export declare class ApplicationShorter extends BaseShorter {
/**
* Lists the emojis for the application.
* @param applicationId The ID of the application.
* @returns The emojis.
*/
listEmojis(applicationId: string): Promise<import("../../types").RESTGetAPIApplicationEmojisResult>;
/**
* Gets an emoji for the application.
* @param applicationId The ID of the application.
* @param emojiId The ID of the emoji.
* @returns The emoji.
*/
getEmoji(applicationId: string, emojiId: string): Promise<import("../../types").APIEmoji>;
/**
* Creates a new emoji for the application.
* @param applicationId The ID of the application.
* @param body.name The name of the emoji.
* @param body.image The [image data string](https://discord.com/developers/docs/reference#image-data) of the emoji.
* @returns The created emoji.
*/
createEmoji(applicationId: string, body: RESTPostAPIApplicationEmojiJSONBody): Promise<import("../../types").APIEmoji>;
/**
* Lists the entitlements for the application.
* @param applicationId The ID of the application.
* @param [query] The query parameters.
*/
listEntitlements(applicationId: string, query?: RESTGetAPIEntitlementsQuery): Promise<EntitlementStructure[]>;
/**
* Consumes an entitlement for the application.
* @param applicationId The ID of the application.
* @param entitlementId The ID of the entitlement.
*/
consumeEntitlement(applicationId: string, entitlementId: string): Promise<never>;
/**
* Creates a test entitlement for the application.
* @param applicationId The ID of the application.
* @param body The body of the request.
*/
createTestEntitlement(applicationId: string, body: RESTPostAPIEntitlementBody): Promise<EntitlementStructure>;
/**
* Deletes a test entitlement for the application.
* @param applicationId The ID of the application.
* @param entitlementId The ID of the entitlement.
*/
deleteTestEntitlement(applicationId: string, entitlementId: string): Promise<never>;
/**
* Lists the SKUs for the application.
* @param applicationId The ID of the application.
* @returns The SKUs.
*/
listSKUs(applicationId: string): Promise<import("../../types").RESTGetAPISKUsResult>;
}