bedrock-portal 0.2.4 → 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 +2 -2
- package/package.json +1 -1
- package/src/common/constants.js +1 -1
- package/src/rest.js +2 -2
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
|
-
- **
|
|
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
|
-
|
|
77
|
+
inviteOnAdd: true,
|
|
78
78
|
});
|
|
79
79
|
```
|
|
80
80
|
|
package/package.json
CHANGED
package/src/common/constants.js
CHANGED
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) {
|