Jump to content
McKay Development

SteamID object generated with node-steamid throws [Error: Failed to set new primary group.] for primaryGroup in editProfile


Jack

Recommended Posts

I got the SteamID for a group from `<groupID64>` on the page like the internet told me: https://steamcommunity.com/groups/projectcrate/memberslistxml/?xml=1

 

SteamID returns:

SteamID { universe: 1, type: 7, instance: 0, accountid: 5921375 }

7 is `CLAN`, so it appears to be working correctly. However:

const SteamCommunity = require('steamcommunity');
const community = new SteamCommunity;


const SteamID = require('steamid');
const group = new SteamID('103582791435442783');


community.login({
  'accountName': <username>,
  'password': <password>
}, function(err, user) {
  if (err) {
    console.log(err);
  }


  community.editProfile({
    'name': <name>,
    'summary': <summary>
    'customURL': <URL>,
    'primaryGroup': group,
    'realName': '',
    'country': '',
    'state': '',
    'city': '',
    'background': '',
    'featuredBadge': ''
  }, function(err) {
    if (err) {
      console.log(err);
    }
  });
});

"[Error: Failed to set new primary group.]"

 

If you generate `group` with another SteamID64 like a profile's it doesn't throw an error, but it obviously also doesn't do anything.

Edited by Jack
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...