QuestionRealQuick1 Posted May 2, 2018 Report Share Posted May 2, 2018 Title says it all.How would i go about checking if a steamid64 is your friend?am having some crashing issues with my bot attempting to message non friends. Quote Link to comment Share on other sites More sharing options...
Revadike Posted May 9, 2018 Report Share Posted May 9, 2018 Assuming you are logged in (user = steam-user instance, steamid = steamid64): function isSteamFriends(steamid) { return Object.entries(user.myFriends).filter(e => e[1] === SteamUser.Steam.EFriendRelationship.Friend).map(e => e[0]).includes(steamid); } QuestionRealQuick1 1 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.