bedrock-portal 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -62,7 +62,7 @@ Modules are used to extend the functionality of the BedrockPortal class.
62
62
  Automatically adds the account's followers as friends and invites them to the game. `#.use(Modules.autoFriendAdd);`
63
63
 
64
64
  Options:
65
- - **autoInvite**: boolean - Automatically invites recently added friends to the game (default: false)
65
+ - **inviteOnAdd**: boolean - Automatically invites recently added friends to the game (default: false)
66
66
 
67
67
  ```js
68
68
  const { BedrockPortal, Modules } = require('bedrock-portal');
@@ -74,7 +74,7 @@ portal.use(Modules.autoFriendAdd);
74
74
  // or
75
75
 
76
76
  portal.use(Modules.autoFriendAdd, {
77
- autoInvite: true,
77
+ inviteOnAdd: true,
78
78
  });
79
79
  ```
80
80
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bedrock-portal",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Creates a joinable session in Minecraft Bedrock Edition that can route players to their a specified host",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/rest.js CHANGED
@@ -114,11 +114,11 @@ module.exports = class Rest {
114
114
  }
115
115
 
116
116
  async getXboxFriends() {
117
- return await this.get('https://peoplehub.xboxlive.com/users/me/people/social/decoration/details', { contractVersion: 5 }).then(res => res.people.map(e => this.#parseXboxProfile(e)));
117
+ return await this.get('https://peoplehub.xboxlive.com/users/me/people/social/decoration/details,preferredColor', { contractVersion: 5 }).then(res => res.people.map(e => this.#parseXboxProfile(e)));
118
118
  }
119
119
 
120
120
  async getXboxFollowers() {
121
- return await this.get('https://peoplehub.xboxlive.com/users/me/people/followers/decoration/details', { contractVersion: 5 }).then(res => res.people.map(e => this.#parseXboxProfile(e)));
121
+ return await this.get('https://peoplehub.xboxlive.com/users/me/people/followers/decoration/details,preferredColor', { contractVersion: 5 }).then(res => res.people.map(e => this.#parseXboxProfile(e)));
122
122
  }
123
123
 
124
124
  async addXboxFriend(xuid) {