Jump to content
McKay Development

getSteamUser and SteamID64 string


PonyExpress

Recommended Posts

"id parameter should be a user URL string or a SteamID object"
"id - Either a SteamID object or a user's URL (the part after /id/)"

https://github.com/DoctorMcKay/node-steamcommunity/wiki/SteamCommunity#getsteamuserid-callback

When trying to use:

community.getSteamUser("76561198274802037", (error, user) => {
    if (error) {
        console.log(error)
    } else {
        console.log(user)
    }
})

I get an error: "The specified profile could not be found."

Everything is good when using:  new SteamID("76561198274802037")

My mistake, sorry, everything is fine. I was sure it was about SteamID64 but here you need a custom url part.

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...