Jump to content
McKay Development

Possible to know if friend-request has been accepted?


Recommended Posts

Hello, I was wondering if it's possible to know if friend-request has been accepted after sending an invite.

I looked through the module docs and couldn't find anything, but perhaps I've missed something?


Thanks in advance.




client.on('friendRelationship', function(steamID, relationship) {
    if (relationship == SteamUser.Steam.EFriendRelationship.Friend) { //this user became our friend on Steam
        //do something

 Check enum here: https://github.com/DoctorMcKay/node-steam-user/blob/master/enums/EFriendRelationship.js


Just a heads up, if someone send you friend request, event will be called and "relationship" is: 2 (RequestRecipient).

And if you accepted the friend request, the "friendrelationship" event will be called again and "relationship" is: 3 (Friend).

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.

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.

  • Create New...