Jack Posted January 12, 2018 Report Posted January 12, 2018 (edited) 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 January 12, 2018 by Jack Quote
Jack Posted January 12, 2018 Author Report Posted January 12, 2018 (edited) I've now realized that method only sets that group as the primary one, doesn't join it. Which you obviously have to do prior. Edited January 12, 2018 by Jack Quote
Recommended Posts
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.