API reference
Custom emoji
A server's own emoji.
List Guild Emojis
/guilds/{guild.id}/emojisPeople and botsThe server's custom emoji.
Path parameters
guild.id- A snowflake id.
Response
200 a list of APIEmoji
[
{
"id": "107441200000000500",
"name": "tether_wave",
"roles": [],
"user": {
"id": "107441200000000200",
"username": "josh",
"discriminator": "0",
"global_name": "Josh",
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": false,
"public_flags": 0
},
"require_colons": true,
"managed": false,
"animated": false,
"available": true
}
]
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
Discord
The same as Discord’s List Guild Emojis.
Get Guild Emoji
/guilds/{guild.id}/emojis/{emoji.id}People and botsOne custom emoji.
Path parameters
guild.id- A snowflake id.
emoji.id- A snowflake id.
Response
200 APIEmoji
{
"id": "107441200000000500",
"name": "tether_wave",
"roles": [],
"user": {
"id": "107441200000000200",
"username": "josh",
"discriminator": "0",
"global_name": "Josh",
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": false,
"public_flags": 0
},
"require_colons": true,
"managed": false,
"animated": false,
"available": true
}
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
UNKNOWN_EMOJI10014 · HTTP 404- There is no such emoji in the server.
Discord
The same as Discord’s Get Guild Emoji.
Create Guild Emoji
/guilds/{guild.id}/emojisPeople and botsUpload a custom emoji (PNG, JPEG, GIF or WebP, 256 KB at most).
A server holds 50 still and 50 animated emoji. Put one in a message as <:name:id> (<a:name:id> if animated).
Permissions needed
CREATE_GUILD_EXPRESSIONSbit 8796093022208- Create emoji
Path parameters
guild.id- A snowflake id.
Body
application/json
namestringrequiredimagestring · max 349654 charactersrequired- A base64 data URI of the picture.
rolesarray of string · max 250 items- Accepted and ignored: tether never limits an emoji to roles.
Example request
{
"name": "tether_wave",
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=="
}
Response
201 APIEmoji
{
"id": "107441200000000500",
"name": "tether_wave",
"roles": [],
"user": {
"id": "107441200000000200",
"username": "josh",
"discriminator": "0",
"global_name": "Josh",
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": false,
"public_flags": 0
},
"require_colons": true,
"managed": false,
"animated": false,
"available": true
}
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
INVALID_FORM_BODY50035 · HTTP 400- A field is missing, the wrong type or outside its limits.
MAX_EMOJIS30008 · HTTP 400- The server has as many emoji of that kind as it may.
Rate limits
emojiCreatePerUserGuildbucket 26cfa083- 30 per 3600 seconds, counted per user. See Rate limits.
Gateway events it causes
Discord
Like Discord’s Create Guild Emoji, with differences.
Emoji are never limited to roles.
Modify Guild Emoji
/guilds/{guild.id}/emojis/{emoji.id}People and botsRename an emoji. The picture cannot be changed.
Needs Manage Expressions, or Create Expressions for an emoji you uploaded yourself.
Permissions needed
MANAGE_GUILD_EXPRESSIONSbit 1073741824- Manage emoji
Path parameters
guild.id- A snowflake id.
emoji.id- A snowflake id.
Body
application/json
namestringrolesarray of string | null · max 250 items
Example request
{
"name": "tether_hello"
}
Response
200 APIEmoji
{
"id": "107441200000000500",
"name": "tether_wave",
"roles": [],
"user": {
"id": "107441200000000200",
"username": "josh",
"discriminator": "0",
"global_name": "Josh",
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": false,
"public_flags": 0
},
"require_colons": true,
"managed": false,
"animated": false,
"available": true
}
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
UNKNOWN_EMOJI10014 · HTTP 404- There is no such emoji in the server.
INVALID_FORM_BODY50035 · HTTP 400- A field is missing, the wrong type or outside its limits.
Gateway events it causes
Discord
The same as Discord’s Modify Guild Emoji.
Delete Guild Emoji
/guilds/{guild.id}/emojis/{emoji.id}People and botsDelete an emoji.
Needs Manage Expressions, or Create Expressions for an emoji you uploaded yourself.
Permissions needed
MANAGE_GUILD_EXPRESSIONSbit 1073741824- Manage emoji
Path parameters
guild.id- A snowflake id.
emoji.id- A snowflake id.
Response
204 no body
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
UNKNOWN_EMOJI10014 · HTTP 404- There is no such emoji in the server.
Gateway events it causes
Discord
The same as Discord’s Delete Guild Emoji.