UserManager - antilandjs/antiland.js GitHub Wiki
The manager for any and all, cached or uncached, users.
extends BaseManager
Methods
Promise<boolean>
.checkPrivateBlocked(userId, options?) :Whether you have been blocked in a private chat with the user.
Promise<User>
.create(options?) :Create an account.
Promise<User>
.fetch(id, options?) :Fetch a user profile.
Name | Type | Optional |
---|---|---|
id | string | No |
options | object | Yes |
Promise<object?>
.getBanInfo(options?) :Check if a user has blocked the client? Unsure what this does.
Name | Type | Optional |
---|---|---|
options | object | Yes |
Promise<Dialogue>
.fetchDM(userId, options?) :Fetch an active or inactive private DM with a user.
Name | Type | Optional |
---|---|---|
userId | string | No |
options | object | Yes |
Promise<User>
.random(lastUsers, options?) :Find a random user profile.
Name | Type | Optional |
---|---|---|
lastUsers | Array | Yes |
options | object | Yes |
Promise<object>
.sendGift(userId, options?) :Send a gift to a user.
Name | Type | Optional |
---|---|---|
userId | string | No |
options | object | Yes |
Promise<User>
.search(query, options?) :Search for a user.
Name | Type | Optional |
---|---|---|
query | string | No |
options | object | Yes |