Reaction experimental
API
Add Reaction
POST /reaction.create
FIELD | TYPE | DESCRIPTION |
---|---|---|
channel_id | string | channel id |
message_id | string | message id |
emoji | string | reaction emoji |
Add a reaction to a specific message.
Remove Reaction
POST /reaction.delete
FIELD | TYPE | DESCRIPTION |
---|---|---|
channel_id | string | channel id |
message_id | string | message id |
emoji | string | reaction emoji |
user_id | string? | user id |
Remove a specific reaction added by a user from a specific message. If no user id is provided, it removes the reaction added by the current user.
Clear Reactions
POST/reaction.clear
FIELD | TYPE | DESCRIPTION |
---|---|---|
channel_id | string | channel id |
message_id | string | message id |
emoji | string? | reaction emoji |
Clear a specific reaction from a specific message. If no emoji is provided, it clears all reactions.
Get Reaction List
POST /reaction.list
FIELD | TYPE | DESCRIPTION |
---|---|---|
channel_id | string | channel id |
message_id | string | message id |
emoji | string | reaction emoji |
next | string? | pagination token |
Get all the users who added a specific reaction to a specific message. Returns a paginated list of User objects.
Events
reaction-added
Triggered when a reaction is added.
reaction-removed
Triggered when a reaction is removed.