Module
x/discord_api_types/rest/v9/sticker.ts
Up to date Discord API Typings, versioned by the API version
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980import type { APISticker, APIStickerPack } from '../../payloads/v9/mod.ts';import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface } from '../../utils/internals.ts';
/** * https://discord.com/developers/docs/resources/sticker#get-sticker */export type RESTGetAPIStickerResult = APISticker;
/** * https://discord.com/developers/docs/resources/sticker#list-nitro-sticker-packs */export interface RESTGetNitroStickerPacksResult { sticker_packs: APIStickerPack[];}
/** * https://discord.com/developers/docs/resources/sticker#list-guild-stickers */export type RESTGetAPIGuildStickersResult = APISticker[];
/** * https://discord.com/developers/docs/resources/sticker#get-guild-sticker */export type RESTGetAPIGuildStickerResult = APISticker;
/** * https://discord.com/developers/docs/resources/sticker#create-guild-sticker */export interface RESTPostAPIGuildStickerFormDataBody { /** * Name of the sticker (2-30 characters) */ name: string; /** * Description of the sticker (empty or 2-100 characters) */ description: string; /** * The Discord name of a unicode emoji representing the sticker's expression (2-200 characters) */ tags: string; /** * The sticker file to upload, must be a PNG, APNG, or Lottie JSON file, max 500 KB */ file: unknown;}
/** * https://discord.com/developers/docs/resources/sticker#create-guild-sticker */export type RESTPostAPIGuildStickerResult = APISticker;
/** * https://discord.com/developers/docs/resources/sticker#modify-guild-sticker */export type RESTPatchAPIGuildStickerJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * Name of the sticker (2-30 characters) */ name?: string; /** * Description of the sticker (2-100 characters) */ description?: string | null; /** * The Discord name of a unicode emoji representing the sticker's expression (2-200 characters) */ tags?: string;}>;
/** * https://discord.com/developers/docs/resources/sticker#modify-guild-sticker */export type RESTPatchAPIGuildStickerResult = APISticker;
/** * https://discord.com/developers/docs/resources/sticker#delete-guild-sticker */export type RESTDeleteAPIGuildStickerResult = never;