The method message.send()
is used to send a message to the room's chat. It requires one parameter: the message to be sent.
// Assuming you have defined the Highrise instance as "bot".
bot.on("chatCreate", async (user, message) => {
if (message === "chat") {
bot.message.send("Hello, world!").catch(e => console.error(e));
}
});
Go Back: Sending Messages