Skip to main content
A GuildEmoji is a custom emoji of a server. You get one from guild.emojis, guild.fetchEmojis() or guild.createEmoji(). Putting one in a text shows it.
How to put an emoji in a message or react with one is in Messages. A standard emoji (🎉) is a text, not a GuildEmoji.

Properties

Snowflake
The unique id Discord gave it.
Date
When it was created: a Discord id contains its creation date.
Snowflake
The id of the server of the emoji.
string
The name of the emoji, without the colons.
boolean
Whether the emoji moves.
boolean
false when the server lost the boosts that gave it this emoji.
boolean
Whether the emoji belongs to an integration.
readonly Snowflake[]
The ids of the roles allowed to use the emoji; empty for everyone.

Helpers

These read what the bot remembers: they never send a request.

url()

The URL of the image of the emoji. See ImageOptions.

toString()

<:name:id>: shows the emoji when put in a message.

toJSON()

The data of Discord as a plain object, with camelCase names.

Actions

edit()

Renames the emoji, or changes which roles can use it. Discord documentation

delete()

Deletes the emoji. Discord documentation

Types

ImageOptions is in Helpers. To add an emoji to a server, see guild.createEmoji().