ClientUser - antilandjs/antiland.js GitHub Wiki
The client account which has been authenticated.
extends User
.accentColor : number
The accent colour of the client user.
A list of users that have blocked the client user.
.channelId : string
The ID of the private channel for the client user.
.contacts : ContactManager<id, User>
Search for, cache, and perform actions on contacts.
.favorites : FavoriteManager<id, User>
Search for, cache, and perform actions on favourites.
.friends : ClientFriendManager<id, User>
Search for, cache, and perform actions on friends.
.hexAccentColor : string
Client user accent colour hex value.
.messages : MessageManager<id, Message>
Search for, cache, and perform actions on direct messages.
.referrerId : string • readonly
Referrer ID if applicable.
.stickers : ClientStickerManager<id, object>
Search for, cache, and perform actions on purchased/owned sticker packs.
.tasks : TaskManager<id, object>
Search for, cache, and perform actions on direct messages.
Account based content preferences.
Name | Type | Optional |
---|---|---|
options | object | Yes |
Account based security settings.
Name | Type | Optional |
---|---|---|
options | object | Yes |
Fetch recent profile visitors. (costs 25K)
Name | Type | Optional |
---|---|---|
options | object | Yes |
.generateToken() : Promise<unknown>
Unsure what this does.
Get the client user vanity URL.
Name | Type | Optional |
---|---|---|
options | object | Yes |
Purchase a one month super power trial. (costs 10000K)
Set avatar accessories.
Name | Type | Optional |
---|---|---|
accessories | Array | Set | No |
Set avatar.
Name | Type | Optional |
---|---|---|
avatarId | string | No |
Set sex and age. (age can only be modified once per month)
Name | Type | Optional |
---|---|---|
options | object | Yes |
Set interest(s) and language.
Name | Type | Optional |
---|---|---|
options | object | Yes |
Set interest(s) and language.
Name | Type | Optional |
---|---|---|
moodId | string | No |
Set user password.
Name | Type | Optional |
---|---|---|
password | string | No |
Set security settings.
Name | Type | Optional |
---|---|---|
options | object | Yes |
Configurate super-powers.
Name | Type | Optional |
---|---|---|
options | object | Yes |
Set user data.
Name | Type | Optional |
---|---|---|
options | object | Yes |
.softDelete() : Promise<unknown>
Schedule account for deletion? Unsure what this does, use it at your own risk.
Update user data.
Name | Type | Optional |
---|---|---|
options | object | Yes |
Update private channel ID. (rollback uses user ID)
Name | Type | Optional |
---|---|---|
rollback | boolean | No |
Set the vanity URL for your profile. (requires approval)
Name | Type | Optional |
---|---|---|
vanity | string | No |
Unset the vanity URL for your profile.