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