# Highrise-js-sdk v2.1.0 🎉

**URL:** <https://createforum.highrise.game/t/highrise-js-sdk-v2-1-0/114>\
**Category:** Bots API\
**Created:** [June 20, 2023, 2:39am UTC](https://createforum.highrise.game/t/highrise-js-sdk-v2-1-0/114 "2023-06-20T02:39:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hsein](https://yyz2.discourse-cdn.com/flex036/user_avatar/createforum.highrise.game/hsein/32/354_2.png) [@Hsein](https://createforum.highrise.game/u/Hsein)\
**Post date:** [June 20, 2023, 2:39am UTC](https://createforum.highrise.game/t/highrise-js-sdk-v2-1-0/114/1 "2023-06-20T02:39:50Z")

</div>

Hello everyone, [Highrise JS SDK version 2.1.0](https://www.npmjs.com/package/highrise-js-sdk) 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:

1. Run `npm uninstall highrise-js-sdk`
2. Run `npm install highrise-js-sdk@latest`

### Example Usage:

```js
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](https://highrise-js.notion.site/ChangeLogs-fe065db45e0b4f36b2fb5cfc50813f09).  
Thank you, and if you have any further questions or need assistance, feel free to reach out to us 🙂.

---

<div class="post-metadata">

**Author:** ![WSA0](https://yyz2.discourse-cdn.com/flex036/user_avatar/createforum.highrise.game/wsa0/32/44_2.png) [@WSA0](https://createforum.highrise.game/u/WSA0)\
**Post date:** [June 20, 2023, 2:42pm UTC](https://createforum.highrise.game/t/highrise-js-sdk-v2-1-0/114/2 "2023-06-20T14:42:05Z")

</div>

could you add the explanation to you documentation

---

<div class="post-metadata">

**Author:** ![Hsein](https://yyz2.discourse-cdn.com/flex036/user_avatar/createforum.highrise.game/hsein/32/354_2.png) [@Hsein](https://createforum.highrise.game/u/Hsein)\
**Post date:** [June 20, 2023, 7:55pm UTC](https://createforum.highrise.game/t/highrise-js-sdk-v2-1-0/114/3 "2023-06-20T19:55:06Z")

</div>

Yes, indeed, I can add it. However, I’ve been extremely busy with various tasks lately. Rest assured, I’m doing my best to keep you all updated. Soon, I will enhance the documentation by including more examples and methods, along with tutorial videos. In the meantime, if you have any questions about any code or method, feel free to ask in the bot-api channel on the [Highrise Discord Server](https://discord.com/highrise) 😊.

Let me know if there’s anything else I can assist you with!
