Jump to content


Photo

Get a list of pending friend requests?

node.js node-steam-user

Best Answer Dr. McKay , 15 June 2016 - 09:47 AM

Check each SteamID in the myFriends property. If the value is EFriendRelationship.RequestRecipient, then they're a pending friend request.

Go to the full post


  • Please log in to reply
3 replies to this topic

#1 cookie

cookie

    Advanced Member

  • Member
  • PipPipPip
  • 62 posts

Posted 15 June 2016 - 07:42 AM

Hello,

 

Is it possible to retrieve list of pending friend requests instead of listening to friendRelationship which will be emit once per invite?



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,070 posts

Posted 15 June 2016 - 09:47 AM   Best Answer

Check each SteamID in the myFriends property. If the value is EFriendRelationship.RequestRecipient, then they're a pending friend request.



#3 cookie

cookie

    Advanced Member

  • Member
  • PipPipPip
  • 62 posts

Posted 15 June 2016 - 10:28 AM

Check each SteamID in the myFriends property. If the value is EFriendRelationship.RequestRecipient, then they're a pending friend request.

 

What about the people that I ignored? it doesn't seem to be in that list sadly, Any workaround to retrieve a list of ignored friends requests?


Edited by cookie, 15 June 2016 - 10:44 AM.


#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,070 posts

Posted 15 June 2016 - 01:22 PM

There's no such thing as an "ignored friend request". Once you ignore a friend request, the friend request is fully deleted from Steam.

 

If you want a record of people who have added you that you've ignored, you'll need to keep it yourself. You could use nicknames for this perhaps (although I don't think nicknames are implemented in steam-user yet).







Also tagged with one or more of these keywords: node.js, node-steam-user

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users