Estados Posted Friday at 06:06 PM Report Share Posted Friday at 06:06 PM 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 Saturday at 09:11 AM Report Share Posted Saturday at 09:11 AM 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 Saturday at 12:22 PM Author Report Share Posted Saturday at 12:22 PM 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 Saturday at 05:41 PM Report Share Posted Saturday at 05:41 PM 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.