Skip to main content

Emojis

Blocks for a server's custom emojis: reading them, creating them, renaming them and deleting them.

Show the whole Emojis flyout

The Emojis subcategory

Getting an emoji​

Get emoji

get emoji with name equal to ... on the server ... finds a custom emoji by name or ID.

BlockWhat it does
for each emojiLoops over every emoji in a server.
current emojiThe emoji being handled.

Reading an emoji​

BlockReturns
nameThe emoji name, without colons.
idIts ID.
image urlA URL to the image or GIF.
serverThe server it belongs to.
animatedTrue when it is animated.
createdWhen it was uploaded.
authorWho uploaded it.

Managing emojis​

BlockWhat it does
createUploads a new emoji from an image or GIF URL.
renameRenames an emoji.
deleteDeletes it.

Creating and deleting emojis needs the Manage Expressions permission.

Using an emoji in a message​

Custom emojis are written in a special form in message text:

  • Static: <:name:id>
  • Animated: <a:name:id>

Build that with create text with from Text, using the emoji's name and ID blocks. Blocks that take an emoji directly, such as react to message, accept the emoji name on its own.

Emoji limits​

Boost levelStaticAnimated
None5050
Level 1100100
Level 2150150
Level 3250250

Images must be under 256 KB. Discord rejects anything larger.

Events​

For when an emoji is created, deleted or renamed, see Emojis and Stickers.

A worked example: an emoji list command​

  1. A slash command called emojis.
  2. for each emoji on the server.
  3. Build a piece of text using create text with, appending <:name:id> for each one.
  4. Send the result as a text display, in a container.