DoctorMcKay / node-steamcommunity

Interact with various interfaces on Steam Community from Node.js
https://dev.doctormckay.com/forum/8-node-steamcommunity/
MIT License
473 stars 127 forks source link

Re-enable primaryGroup profile setting #307

Closed 3urobeat closed 1 year ago

3urobeat commented 1 year ago

Hey!
The primaryGroup setting in the editProfile() function does seem to work again so I decided to open a PR that enables the code block again.

I've tested the function with a limited and an unlimited account. The limited acc has E-Mail steam guard, the unlimited acc is secured with mobile steam guard.

I called the function like this from the webSession event to make sure cookies were set:

const SteamID = require("steamid")

community.editProfile({ //community was set previously as a new SteamCommunity object
    primaryGroup: new SteamID("my_groupID64")
}, (err) => {
    if (err) console.log(err);
})

 

This successfully updated my primaryGroup setting.
I also tested the other two disabled settings (background & featuredBadge) but was unable to get them to work as well :(

 

Note: This PR was previously #287 from Jun 3, 2022 but I pushed more commits to my master branch. I'm therefore opening this PR to isolate the change from the other commits.