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.

Enabling The Event

const { Highrise, Events } = require("highrise.sdk");

// Create a new instance of the Highrise class.
const bot = new Highrise({
  Events: [
    Events.Reactions // Listen for reactions.
  ]
});

⚙️ Use cases

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