Hello everyone, Highrise JS SDK version 2.1.0 is now available!
In this update, we have made modifications to several methods and events, expanded the range of available methods, and introduced new events and direct message controls.
Key points of this update:
- Direct Message Support
- User Avatar
- Improved Await Events
- Readable Outputs
- Voice Chat and Wallet
To update the package, please follow these commands:
- Run
npm uninstall highrise-js-sdk
- Run
npm install highrise-js-sdk@latest
Example Usage:
const eventsOfIntereset = ['ready', 'messages', 'directMessageCreate']
const bot = new Highrise({ events: eventsOfIntereset });
bot.on('directMessageCreate', (user, data) => {
// Process the direct message event
console.log('Direct message received');
console.log('User ID:', user);
console.log('Conversation ID:', data.id);
console.log('Is New:', data.isNew);
// Perform additional actions or responses based on the message
// Example: Send a reply
bot.direct.send(data.id, 'Thank you for your message!');
});
bot.login(token, roomID)
To learn more about the update, including detailed examples and explanations, click here.
Thank you, and if you have any further questions or need assistance, feel free to reach out to us .