Emoji

List Emojis

GetAPIGuildEmojis

Returns a list of emoji objects for the given guild.

import { listEmojis } from "dressed";
const emojis = await listEmojis(guildId);
Info

Includes user fields if the bot has the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission.

Get Emoji

GetAPIGuildEmoji

Returns an emoji object for the given guild and emoji IDs.

import { getEmoji } from "dressed";
const emoji = await getEmoji(guildId, emojiId);
Info

Includes the user field if the bot has the MANAGE_GUILD_EXPRESSIONS permission, or if the bot created the emoji and has the the CREATE_GUILD_EXPRESSIONS permission.

Create Emoji

PostAPIGuildEmoji

Create a new emoji for the guild.

import { createEmoji } from "dressed";
await createEmoji(guildId, data);
Info
  • Includes user fields if the bot has the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission.
  • We highly recommend that developers use the .webp extension when fetching emoji so they're rendered as WebP for maximum performance and compatibility. See the Emoji Formats section above for more details.
Warning

Emojis and animated emojis have a maximum file size of 256 KiB. Attempting to upload an emoji larger than this limit will fail and return 400 Bad Request and an error message, but not a JSON status code.

Modify Emoji

PatchAPIGuildEmoji

Modify the given emoji.

import { modifyEmoji } from "dressed";
await modifyEmoji(guildId, emojiId, data);
Info
  • For emojis created by the current user, requires either the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission.
  • For other emojis, requires the MANAGE_GUILD_EXPRESSIONS permission.

Delete Emoji

DeleteAPIGuildEmoji

Delete the given emoji.

import { deleteEmoji } from "dressed";
await deleteEmoji(guildId, emojiId);
Info
  • For emojis created by the current user, requires either the CREATE_GUILD_EXPRESSIONS or MANAGE_GUILD_EXPRESSIONS permission.
  • For other emojis, requires the MANAGE_GUILD_EXPRESSIONS permission.

List Application Emojis

GetAPIApplicationEmojis

Returns an object containing a list of emoji objects for the given application under the items key.

import { listApplicationEmojis } from "dressed";
const applicationEmojis = await listApplicationEmojis();
Info

Includes a user object for the team member that uploaded the emoji from the app's settings, or for the bot user if uploaded using the API.

Get Application Emoji

GetAPIApplicationEmoji

Returns an emoji object for the given application and emoji IDs.

import { getApplicationEmoji } from "dressed";
const applicationEmoji = await getApplicationEmoji(emojiId);
Info

Includes the user field.

Create Application Emoji

PostAPIApplicationEmoji

Create a new emoji for the application.

import { createApplicationEmoji } from "dressed";
await createApplicationEmoji(data);
Info

We highly recommend that developers use the .webp extension when fetching emoji so they're rendered as WebP for maximum performance and compatibility. See the Emoji Formats section above for more details.

Warning

Emojis and animated emojis have a maximum file size of 256 KiB. Attempting to upload an emoji larger than this limit will fail and return 400 Bad Request and an error message, but not a JSON status code.

Modify Application Emoji

PatchAPIApplicationEmoji

Modify the given emoji.

import { modifyApplicationEmoji } from "dressed";
await modifyApplicationEmoji(emojiId, data);

Delete Application Emoji

DeleteAPIApplicationEmoji

Delete the given emoji.

import { deleteApplicationEmoji } from "dressed";
await deleteApplicationEmoji(emojiId);