add friend
#398
-
hey, how do i add/accept a friend request? thats my code so far, i already found that (https://steam.readthedocs.io/en/stable/api/steam.client.builtins.html?highlight=add#steam.client.builtins.friends.SteamFriendlist.add), but i don't know on how to use the add @sc.on(EMsg.ClientFriendsList)
def friend_add(msg):
steamid = msg.body.friends[0].ulfriendid
#steam client = sc |
Beta Was this translation helpful? Give feedback.
Answered by
everlyy
Jul 30, 2022
Replies: 1 comment 1 reply
-
You can use the SteamFriendlist to manage everything friend stuff related. If you want to add someone after they've sent a friend request you can do something like from steam.client.builtins.friends import SteamFriendlist
friendslist = SteamFriendlist(sc) # sc is your SteamClient
@friendslist.on("friend_invite")
def fl_friend_invite(user):
friendslist.add(user) Hope this helps!! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Tom-jm03
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the SteamFriendlist to manage everything friend stuff related. If you want to add someone after they've sent a friend request you can do something like
Hope this helps!!