ClientFriendManager - antilandjs/antiland.js GitHub Wiki
The manager for any and all, cached or uncached, users that are friends with the client user.
extends FriendManager
Properties
object
.pending :Responsible for caching incoming and outgoing friend requests.
Methods
Promise<boolean>
.accept(userId) :Accept an incoming friend request.
Name | Type | Optional |
---|---|---|
userId | string | No |
Promise<boolean | string>
.isPaired(userId) :Check whether a user is your friend.
Name | Type | Optional |
---|---|---|
userId | string | No |
Promise<boolean | string>
.request(userId, check) :Send a friend request to a user.
Name | Type | Optional |
---|---|---|
userId | string | No |
check | boolean | Yes |
Promise<boolean>
.reject(userId) :Reject an incoming friend request.
Name | Type | Optional |
---|---|---|
userId | string | No |
Promise<boolean>
.remove(userId) :Remove a user from your list of friends.
Name | Type | Optional |
---|---|---|
userId | string | No |