K
Docs
API ReferenceEvent TypesReaction added
😀

Reaction added

reactionAddMESSAGE_REACTION_ADDTrigger

Fires when someone adds a reaction to a message.

When to use this
  • Reaction roles
  • Starboard-style logging

On the canvas

This is what the trigger looks like in your bot's Triggers tab. The sparks listed are available in every node inside the linked flow.

😀
Reaction added
reactionAdd
Trigger
Sparks in this flow
{{input.guild.id}}Your Discord server's unique ID
{{input.guild.name}}Your server's name
{{input.guild.memberCount}}How many members are in the server
{{reaction.emoji}}The emoji that was reacted with
{{reaction.userId}}Discord ID of who reacted
{{reaction.messageId}}ID of the message that was reacted to
{{reaction.channelId}}ID of the channel where the reaction happened

Available sparks

Use these in any piece config field inside flows triggered by this event.

SparkTypeDescription
{{input.guild.id}}stringYour Discord server's unique ID
{{input.guild.name}}stringYour server's name
{{input.guild.memberCount}}stringHow many members are in the server
{{reaction.emoji}}stringThe emoji that was reacted with
{{reaction.userId}}stringDiscord ID of who reacted
{{reaction.messageId}}stringID of the message that was reacted to
{{reaction.channelId}}stringID of the channel where the reaction happened
📐

In TypeScript, this would be…

Not something you need to write — Kitcord registers these listeners automatically from your Kit.

TypeScript
client.on("messageReactionAdd", (reaction, user) => {
  // {{reaction.emoji}}, {{reaction.userId}}
});