Emoji Resource
Emoji Object
Emoji Structure
Field | Type | Description |
---|---|---|
id | ?snowflake | emoji id |
name | ?string (can be null only in reaction emoji objects) | emoji name |
roles? | array of role object ids | roles allowed to use this emoji |
user? | user object | user that created this emoji |
require_colons? | boolean | whether this emoji must be wrapped in colons |
managed? | boolean | whether this emoji is managed |
animated? | boolean | whether this emoji is animated |
available? | boolean | whether this emoji can be used, may be false due to loss of Server Boosts |
Emoji Example
json
{"id": "41771983429993937","name": "LUL","roles": ["41771983429993000", "41771983429993111"],"user": {"username": "Luigi","discriminator": "0002","id": "96008815106887111","avatar": "5500909a3274e1812beb4e8de6631111","public_flags": 131328},"require_colons": true,"managed": false,"animated": false}
Gateway Reaction Standard Emoji Example
json
{"id": null,"name": "🔥"}
Gateway Reaction Custom Emoji Examples
json
{"id": "41771983429993937","name": "LUL","animated": true}
json
{"id": "41771983429993937","name": null}
Endpoints
List Guild Emojis
GET
/guilds/{guild.id}/emojis
Returns a list of emoji objects for the given guild.
Get Guild Emoji
GET
/guilds/{guild.id}/emojis/{emoji.id}
Returns an emoji object for the given guild and emoji IDs.
Create Guild Emoji
POST
/guilds/{guild.id}/emojis
Create a new emoji for the guild. Requires the MANAGE_EMOJIS_AND_STICKERS
permission. Returns the new emoji object on success. Fires a Guild Emojis Update Gateway event.
JSON Params
Field | Type | Description |
---|---|---|
name | string | name of the emoji |
image | image data | the 128x128 emoji image |
roles | array of snowflakes | roles allowed to use this emoji |
Modify Guild Emoji
PATCH
/guilds/{guild.id}/emojis/{emoji.id}
Modify the given emoji. Requires the MANAGE_EMOJIS_AND_STICKERS
permission. Returns the updated emoji object on success. Fires a Guild Emojis Update Gateway event.
JSON Params
Field | Type | Description |
---|---|---|
name | string | name of the emoji |
roles | ?array of snowflakes | roles allowed to use this emoji |
Delete Guild Emoji
DELETE
/guilds/{guild.id}/emojis/{emoji.id}
Delete the given emoji. Requires the MANAGE_EMOJIS_AND_STICKERS
permission. Returns 204 No Content
on success. Fires a Guild Emojis Update Gateway event.