Skip to main content
Module

x/discord_api_types/rest/v8/emoji.ts

Up to date Discord API Typings, versioned by the API version
Go to Latest
File
import type { Snowflake } from '../../globals.ts';import type { APIEmoji } from '../../payloads/v8/mod.ts';import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface } from '../../utils/internals.ts';
/** * https://discord.com/developers/docs/resources/emoji#list-guild-emojis * @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10. */export type RESTGetAPIGuildEmojisResult = APIEmoji[];
/** * https://discord.com/developers/docs/resources/emoji#get-guild-emoji * @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10. */export type RESTGetAPIGuildEmojiResult = APIEmoji;
/** * https://discord.com/developers/docs/resources/emoji#create-guild-emoji-json-params * @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10. */export type RESTPostAPIGuildEmojiJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * Name of the emoji */ name: string; /** * The 128x128 emoji image * * https://discord.com/developers/docs/reference#image-data */ image: string; /** * Roles for which this emoji will be whitelisted */ roles?: Snowflake[];}>;
/** * https://discord.com/developers/docs/resources/emoji#create-guild-emoji * @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10. */export type RESTPostAPIGuildEmojiResult = APIEmoji;
/** * https://discord.com/developers/docs/resources/emoji#modify-guild-emoji * @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10. */export type RESTPatchAPIGuildEmojiJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * Name of the emoji */ name?: string; /** * Roles for which this emoji will be whitelisted */ roles?: Snowflake[] | null;}>;
/** * https://discord.com/developers/docs/resources/emoji#modify-guild-emoji * @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10. */export type RESTPatchAPIGuildEmojiResult = APIEmoji;
/** * https://discord.com/developers/docs/resources/emoji#delete-guild-emoji * @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10. */export type RESTDeleteAPIGuildEmojiResult = never;