steamutils 1.1.76 → 1.1.78
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +7 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -5629,9 +5629,14 @@ class SteamUser {
|
|
5629
5629
|
|
5630
5630
|
async getMiniprofile(steamId = this._steamid_user){
|
5631
5631
|
const response = await this._httpRequestAjax({
|
5632
|
-
url:
|
5632
|
+
url: `miniprofile/${SteamUser.steamID642Miniprofile(steamId)}/json/?origin=https://steamcommunity.com/`
|
5633
5633
|
})
|
5634
|
-
|
5634
|
+
const miniProfile = response.data;
|
5635
|
+
const avatar_hash = SteamUser.GetAvatarHashFromURL(miniProfile?.avatar_url) || ''
|
5636
|
+
return {
|
5637
|
+
...miniProfile,
|
5638
|
+
avatar_hash,
|
5639
|
+
}
|
5635
5640
|
const example = {
|
5636
5641
|
"level": 0,
|
5637
5642
|
"level_class": "friendPlayerLevel lvl_0",
|