Estados Posted May 26, 2023 Report Share Posted May 26, 2023 Is there a method to get the avatar of the logged in player? Or is it just getting it with getPersonas? Quote Link to comment Share on other sites More sharing options...
TheM Posted May 27, 2023 Report Share Posted May 27, 2023 I found out that the easiest way, at least for me, is getting it from Steam API. I just get the ID from client.steamID.getSteamID64() and then fetch the api page like this https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v2/?key=${process.env.STEAMAPIKEY}&steamids=${steamID64} Quote Link to comment Share on other sites More sharing options...
Estados Posted May 27, 2023 Author Report Share Posted May 27, 2023 3 hours ago, TheM said: I found out that the easiest way, at least for me, is getting it from Steam API. I just get the ID from client.steamID.getSteamID64() and then fetch the api page like this https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v2/?key=${process.env.STEAMAPIKEY}&steamids=${steamID64} I already know how to get it via API. The getPersonas function is easier than getting it from the api anyway. I was wondering if there is a simple method for a direct profile photo. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted May 27, 2023 Report Share Posted May 27, 2023 You'd need to use getPersonas for that. Quote Link to comment Share on other sites More sharing options...
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.