Emoji
- class Emoji
A custom emoji owned by a guild.
- Implements:
Properties
Property
Type
Description
animatedIndicates whether this emoji is animated.
availablecreatedAtWhen this emoji was created, decoded from the emoji snowflake.
guildIdGuild ID this emoji belongs to.
idEmoji ID.
managednameEmoji name used for the colon syntax (
:name:).requireColonsrolesRole IDs allowed to use the emoji, or
nullwhen unrestricted.userUser who created the emoji when Discord includes it.
Methods
- async Emoji.delete(reason: string) Promise<void>
Delete this emoji.
- Parameters:
reason: Reason for deletion, shown in audit log.
-
async Emoji.edit(options:
EmojiEditOptions) Promise<Emoji> Edit emoji properties.
- Parameters:
options: Emoji properties to update (name, restricted roles).
- Returns:
The updated emoji.