get_reactions
Returns a table with all the current reactions from a specific emoji
Example
bot.new_eventlistener({
Event = "MESSAGE_CREATE",
Callback = function(data)
local is_bot = data.author.bot
if is_bot then return end
local channel_id = data.channel_id
local message_id = data.id
add_reaction(channel_id, message_id, "💔")
local reactions = get_reactions(channel_id, message_id, "💔")
table.foreach(reactions[1], print) -- should be the bots reaction if noone before it reacted
end
})
Last updated