var trigger = reaction_add()
func main() {
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Message ID: " + trigger.message_id,
})
}
Reaction Added
Event triggerReactions
Triggers when a reaction is added to a message.
Outputs
Message ID
The ID of the message that was reacted to
Example: 123456789012345678
Channel ID
The ID of the channel containing the message
Example: 123456789012345678
Server ID
The ID of the server where the reaction occurred
Example: 123456789012345678
User ID
The ID of the user who added the reaction
Example: 123456789012345678
Emoji ID
The ID of the emoji (empty for standard emojis)
Example: 987654321098765432
Emoji Name
The name of the emoji
Example: smile
Build a bot using triggers like Reaction Added
Use this trigger in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.
Advanced Documentation
This documentation can be useful when using code mode. View as Markdown
ID:
reaction_addOutputs
| Field | InventScript name | Value |
|---|---|---|
| Message ID | message_id | e.g. "123456789012345678" |
| Channel ID | channel_id | e.g. "123456789012345678" |
| Server ID | server_id | e.g. "123456789012345678" |
| User ID | user_id | e.g. "123456789012345678" |
| Emoji ID | emoji_id | e.g. "987654321098765432" |
| Emoji Name | emoji_name | e.g. "smile" |