This event triggers when a player reacts in the room. It includes three parameters: objects for both the receiver and sender, containing the ID and username, along with the reaction ID being used. If the player reacts, the sender is always the receiver unless the bot reacts to a player.
const { Highrise, Events } = require("highrise.sdk");
// Create a new instance of the Highrise class.
const bot = new Highrise({
Events: [
Events.Reactions // Listen for reactions.
]
});
bot.on("playerReact", (sender, receiver, reaction) => {
// Log the reaction to the console.
console.log(`[REACTION]: ${sender.username}:${sender.id} - ${reaction} - ${receiver.username}:${receiver.id}`);
});
Go Back: Get Methods