UserManager - antilandjs/antiland.js GitHub Wiki

The manager for any and all, cached or uncached, users.

extends BaseManager

Methods

.checkPrivateBlocked(userId, options?) : Promise<boolean>

Whether you have been blocked in a private chat with the user.

.create(options?) : Promise<User>

Create an account.

.fetch(id, options?) : Promise<User>

Fetch a user profile.

Name Type Optional
id string No
options object Yes

.getBanInfo(options?) : Promise<object?>

Check if a user has blocked the client? Unsure what this does.

Name Type Optional
options object Yes

.fetchDM(userId, options?) : Promise<Dialogue>

Fetch an active or inactive private DM with a user.

Name Type Optional
userId string No
options object Yes

.random(lastUsers, options?) : Promise<User>

Find a random user profile.

Name Type Optional
lastUsers Array Yes
options object Yes

.sendGift(userId, options?) : Promise<object>

Send a gift to a user.

Name Type Optional
userId string No
options object Yes

.search(query, options?) : Promise<User>

Search for a user.

Name Type Optional
query string No
options object Yes