API reference
Reactions
Emoji under messages.
Create ReactionDelete Own ReactionDelete User ReactionGet ReactionsDelete All ReactionsDelete All Reactions for Emoji
Create Reaction
PUT
/channels/{channel.id}/messages/{message.id}/reactions/{emoji}/@mePeople and botsReact to a message.
Permissions needed
READ_MESSAGE_HISTORYbit 65536- Read message history
ADD_REACTIONSbit 64- Add reactions
Path parameters
channel.id- A snowflake id.
message.id- A snowflake id.
emoji- A unicode emoji (URL-encoded,
%F0%9F%91%8D) or a custom emoji asname:id.
Response
204 no body
Errors
UNKNOWN_CHANNEL10003 · HTTP 404- The channel does not exist, or you are not in its server.
MISSING_ACCESS50001 · HTTP 403- You are in the server but cannot see the channel (VIEW_CHANNEL).
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
UNKNOWN_MESSAGE10008 · HTTP 404- There is no such message in that channel.
UNKNOWN_EMOJI10014 · HTTP 400- The emoji is not a unicode emoji and not a custom emoji of this server.
MAX_REACTIONS30010 · HTTP 400- The message already has 20 different reactions.
Rate limits
reactionAddPerUserChannelbucket ad841a14- 20 per 5 seconds, counted per user. See Rate limits.
Gateway events it causes
Discord
The same as Discord’s Create Reaction.
Delete Own Reaction
DELETE
/channels/{channel.id}/messages/{message.id}/reactions/{emoji}/@mePeople and botsTake your reaction back.
Path parameters
channel.id- A snowflake id.
message.id- A snowflake id.
emoji- A unicode emoji (URL-encoded,
%F0%9F%91%8D) or a custom emoji asname:id.
Response
204 no body
Errors
UNKNOWN_CHANNEL10003 · HTTP 404- The channel does not exist, or you are not in its server.
MISSING_ACCESS50001 · HTTP 403- You are in the server but cannot see the channel (VIEW_CHANNEL).
UNKNOWN_MESSAGE10008 · HTTP 404- There is no such message in that channel.
Gateway events it causes
Discord
The same as Discord’s Delete Own Reaction.
Delete User Reaction
DELETE
/channels/{channel.id}/messages/{message.id}/reactions/{emoji}/{user.id}People and botsRemove someone else's reaction.
Permissions needed
MANAGE_MESSAGESbit 8192- Delete others’ messages
Path parameters
channel.id- A snowflake id.
message.id- A snowflake id.
emoji- A unicode emoji (URL-encoded,
%F0%9F%91%8D) or a custom emoji asname:id. user.id- A snowflake id.
Response
204 no body
Errors
UNKNOWN_CHANNEL10003 · HTTP 404- The channel does not exist, or you are not in its server.
MISSING_ACCESS50001 · HTTP 403- You are in the server but cannot see the channel (VIEW_CHANNEL).
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
UNKNOWN_MESSAGE10008 · HTTP 404- There is no such message in that channel.
Gateway events it causes
Discord
The same as Discord’s Delete User Reaction.
Get Reactions
GET
/channels/{channel.id}/messages/{message.id}/reactions/{emoji}People and botsWho reacted with an emoji.
Path parameters
channel.id- A snowflake id.
message.id- A snowflake id.
emoji- A unicode emoji (URL-encoded,
%F0%9F%91%8D) or a custom emoji asname:id.
Query string
afterstring- Users after this id.
limitinteger · 1 to 100 · default 25- 1 to 100, default 25.
Response
200 a list of APIUser
[
{
"id": "107441200000000200",
"username": "josh",
"discriminator": "0",
"global_name": "Josh",
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": false,
"public_flags": 0
}
]
Errors
UNKNOWN_CHANNEL10003 · HTTP 404- The channel does not exist, or you are not in its server.
MISSING_ACCESS50001 · HTTP 403- You are in the server but cannot see the channel (VIEW_CHANNEL).
UNKNOWN_MESSAGE10008 · HTTP 404- There is no such message in that channel.
Discord
The same as Discord’s Get Reactions.
Delete All Reactions
DELETE
/channels/{channel.id}/messages/{message.id}/reactionsPeople and botsRemove every reaction from a message.
Permissions needed
MANAGE_MESSAGESbit 8192- Delete others’ messages
Path parameters
channel.id- A snowflake id.
message.id- A snowflake id.
Response
204 no body
Errors
UNKNOWN_CHANNEL10003 · HTTP 404- The channel does not exist, or you are not in its server.
MISSING_ACCESS50001 · HTTP 403- You are in the server but cannot see the channel (VIEW_CHANNEL).
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
UNKNOWN_MESSAGE10008 · HTTP 404- There is no such message in that channel.
Gateway events it causes
Discord
The same as Discord’s Delete All Reactions.
Delete All Reactions for Emoji
DELETE
/channels/{channel.id}/messages/{message.id}/reactions/{emoji}People and botsRemove every reaction of one emoji from a message.
Permissions needed
MANAGE_MESSAGESbit 8192- Delete others’ messages
Path parameters
channel.id- A snowflake id.
message.id- A snowflake id.
emoji- A unicode emoji (URL-encoded,
%F0%9F%91%8D) or a custom emoji asname:id.
Response
204 no body
Errors
UNKNOWN_CHANNEL10003 · HTTP 404- The channel does not exist, or you are not in its server.
MISSING_ACCESS50001 · HTTP 403- You are in the server but cannot see the channel (VIEW_CHANNEL).
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
UNKNOWN_MESSAGE10008 · HTTP 404- There is no such message in that channel.
Gateway events it causes
Discord
The same as Discord’s Delete All Reactions for Emoji.