reactionsCount := get_reactions_count(Args{
message_id: trigger.message_id,
channel_id: trigger.channel_id,
emoji_id: "...",
})
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Count: " + reactionsCount.count,
})
Get Reactions Count
BlockReactions
Get number of reactions from a message.
Returns up to 3000 reactions due to Discord limits.
Inputs
Message IDRequired
Message ID
Channel IDRequired
Channel ID
Emoji IDRequired
Emoji ID
Outputs
Count
Number of reactions.
Example: 42
Build a bot using blocks like Get Reactions Count
Use this block 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:
get_reactions_countInputs
| Field | InventScript name | Value |
|---|---|---|
| Message ID | message_id | |
| Channel ID | channel_id | |
| Emoji ID | emoji_id |
Outputs
| Field | InventScript name | Value |
|---|---|---|
| Count | count | e.g. "42" |