steamutils 1.0.9 → 1.0.10
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/SteamClient.js +5 -4
- package/package.json +1 -1
package/SteamClient.js
CHANGED
@@ -228,11 +228,12 @@ function SteamClient({
|
|
228
228
|
break
|
229
229
|
}
|
230
230
|
case Protos.csgo.ECsgoGCMsg.k_EMsgGCCStrike15_v2_Party_Invite: {
|
231
|
-
|
232
|
-
|
231
|
+
const msg = protoDecode(Protos.csgo.CMsgGCCStrike15_v2_Party_Invite, payload);
|
232
|
+
const sid = SteamID.fromIndividualAccountID(msg.accountid);
|
233
233
|
// console.log(msg)
|
234
|
-
|
235
|
-
|
234
|
+
const personas = await getPersonas([sid]);
|
235
|
+
const sID64 = sid.getSteamID64();
|
236
|
+
console.log(personas.find(p => p.id == sID64)?.player_name, `https://steamcommunity.com/profiles/${sID64}`);
|
236
237
|
// joinLobby(msg.lobbyid, msg.accountid)
|
237
238
|
break
|
238
239
|
}
|