Skip to content

Commit

Permalink
Add support for all options of Player.GetOwnedGames#1
Browse files Browse the repository at this point in the history
You can now modify all options/flags that are available for the Player.GetOwnedGames#1 request.
* include_appinfo is still true by default, but you can turn it off if you don't wish to receive apps' name and icon url
* unvetted apps are skipped by default on Steam side. Sending skip_unvetted_apps=false will include the otherwise skipped apps.

After this change, all the previous usages of the SteamUserFriends.getUserOwnedApps method continues to work exactly the same way, but now you can pass in 2 extra options that you previously couldn't.
  • Loading branch information
HarryVGI authored Feb 21, 2024
1 parent d24569d commit 70efd55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/friends.js
Original file line number Diff line number Diff line change
Expand Up @@ -844,10 +844,11 @@ class SteamUserFriends extends SteamUserFamilySharing {
steamID = Helpers.steamID(steamID);
this._sendUnified('Player.GetOwnedGames#1', {
steamid: steamID.toString(),
include_appinfo: true,
include_appinfo: options.includeAppInfo ?? true,
include_played_free_games: options.includePlayedFreeGames || false,
appids_filter: options.filterAppids || undefined,
include_free_sub: options.includeFreeSub || false
include_free_sub: options.includeFreeSub || false,
skip_unvetted_apps: options.skipUnvettedApps ?? true
}, (body, hdr) => {
let err = Helpers.eresultError(hdr.proto);
if (err) {
Expand Down

0 comments on commit 70efd55

Please sign in to comment.