User - antilandjs/antiland.js GitHub Wiki
The base structure for user objects.
extends BaseStructure
Properties
string
.activity :The current presence of the user.
number
.age :Age of the user.
boolean • readonly
.blocked :Whether the user has blocked the client user.
string
.displayName :User display name. (includes emoji for sex)
Dialogue • readonly
.dmChannel :Whether the user has blocked the client user.
FriendManager
.friends :Search for, cache, and perform actions on friends.
string
.gender :Gender of the user.
string • readonly
.humanLink :Whether the user has blocked the client user.
boolean • readonly
.isAdmin :Whether the user is an app moderator.
boolean • readonly
.isInPrison :Whether the user is jailed.
boolean
.isVIP :Whether the user has super-powers?
number
.karma :Amount of karma for the user.
number
.minKarma :The minimum amount of karma required to DM the user.
string
.username :The lowercase display name without the emoji for sex.
Methods
string
.avatarURL() :The avatar URL for the user.
Promise<number>
.checkRating(options?) :Check the rating for a user profile.
Promise<Dialogue>
.createDM() :Create a private DM with a user.
Promise<Dialogue>
.fetchDM(options?) :Fetch or create a DM with a user.
boolean
.isPaired() :Check whether a user is your friend.
Promise<object>
.send(content|options?) :Send a message to a user.