dressed
Version:
A sleek, serverless-ready Discord bot framework.
57 lines (56 loc) • 2.6 kB
TypeScript
import type { RESTGetAPIApplicationEmojiResult, RESTGetAPIApplicationEmojisResult, RESTGetAPIGuildEmojiResult, RESTGetAPIGuildEmojisResult, RESTPatchAPIGuildEmojiJSONBody, RESTPatchAPIGuildEmojiResult, RESTPostAPIGuildEmojiJSONBody, RESTPostAPIGuildEmojiResult, Snowflake } from "discord-api-types/v10";
/**
* Returns a list of emoji objects for the given guild.
* @param guild The guild to get the emojis from
*/
export declare function listEmojis(guild: Snowflake): Promise<RESTGetAPIGuildEmojisResult>;
/**
* Returns an emoji object for the given guild and emoji.
* @param guild The guild to get the emoji from
* @param emoji The emoji to get
*/
export declare function getEmoji(guild: Snowflake, emoji: Snowflake): Promise<RESTGetAPIGuildEmojiResult>;
/**
* Create a new emoji for the guild.
* @param guild The guild to create the emoji for
* @param data The data for the new emoji
*/
export declare function createEmoji(guild: Snowflake, data: RESTPostAPIGuildEmojiJSONBody): Promise<RESTPostAPIGuildEmojiResult>;
/**
* Modify the given guild emoji.
* @param guild The guild to modify the emoji in
* @param emoji The emoji to modify
* @param data The new data for the emoji
*/
export declare function modifyEmoji(guild: Snowflake, emoji: Snowflake, data: RESTPatchAPIGuildEmojiJSONBody): Promise<RESTPatchAPIGuildEmojiResult>;
/**
* Delete the given guild emoji.
* @param guild The guild to delete the emoji from
* @param emoji The emoji to delete
*/
export declare function deleteEmoji(guild: Snowflake, emoji: Snowflake): Promise<void>;
/**
* Returns an object containing a list of emoji objects for the given application.
*/
export declare function listApplicationEmojis(): Promise<RESTGetAPIApplicationEmojisResult["items"]>;
/**
* Returns an emoji object for the given application and emoji IDs.
* @param emoji The emoji to get
*/
export declare function getApplicationEmoji(emoji: Snowflake): Promise<RESTGetAPIApplicationEmojiResult>;
/**
* Create a new emoji for the application.
* @param data The data for the new emoji
*/
export declare function createApplicationEmoji(data: RESTPostAPIGuildEmojiJSONBody): Promise<RESTPostAPIGuildEmojiResult>;
/**
* Modify the given emoji.
* @param emoji The emoji to modify
* @param data The new data for the emoji
*/
export declare function modifyApplicationEmoji(emoji: Snowflake, data: RESTPatchAPIGuildEmojiJSONBody): Promise<RESTPatchAPIGuildEmojiResult>;
/**
* Delete the given emoji.
* @param emoji The emoji to delete
*/
export declare function deleteApplicationEmoji(emoji: Snowflake): Promise<void>;