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_count

Inputs

FieldInventScript nameValue
Message IDmessage_id
Channel IDchannel_id
Emoji IDemoji_id

Outputs

FieldInventScript nameValue
Countcounte.g. "42"

Example InventScript

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,
})

More reactions blocks