From 70efd5580c41b8d9ad052486a40248e16d071e26 Mon Sep 17 00:00:00 2001 From: HarryVGI <122788354+HarryVGI@users.noreply.github.com> Date: Wed, 21 Feb 2024 12:58:52 +0200 Subject: [PATCH] Add support for all options of Player.GetOwnedGames#1 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. --- components/friends.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/friends.js b/components/friends.js index 384338a3..ccb64a43 100644 --- a/components/friends.js +++ b/components/friends.js @@ -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) {