Friend request callback #1485
pogrammerX
started this conversation in
General
Replies: 1 comment
-
manager.Subscribe<SteamFriends.FriendsListCallback>(OnFriendsList);
private static void OnFriendsList(SteamFriends.FriendsListCallback callback)
{
foreach (var friend in callback.FriendList.Where(friend => friend.Relationship == EFriendRelationship.RequestRecipient && friend.SteamID.AccountType == EAccountType.Individual))
{
Steam.Instance.Friends.AddFriend(friend.SteamID);
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone! Is there a event for when a friend request has been received or maybe a function to get all pending incoming friend requests? I want to use this to auto accept friend requests, any help is appreciated!
Beta Was this translation helpful? Give feedback.
All reactions