Constructor
new User()
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
role |
Number | The role of the user | |
globalRole |
Number | The global role of the user (e.g. Brand Ambassador, Admin) | |
avatarID |
String | The avatar of the user | |
badge |
String | The badge of the user | |
subscription |
String | The subscription type of the user | |
guest |
Boolean | Whether the user is a guest or not | |
joined |
Date | When the user created his/her account | |
language |
String | The users language | |
blurb |
String |
<optional> |
The users profile description |
slug |
String | A flattend and url-friendly version of the username | |
level |
Number | The level of the user | |
mention |
String | The mention for that user |
- Source:
Methods
add() → {Promise}
Adds the user to the waitlst
- Source:
Returns:
- Type
- Promise
move(position) → {Promise}
Moves the user in the waitlist
Parameters:
Name | Type | Description |
---|---|---|
position |
Number |
- Source:
Returns:
- Type
- Promise
mute(time, reason) → {Promise}
Mutes the user
Parameters:
Name | Type | Description |
---|---|---|
time |
Number | |
reason |
String |
- Source:
Returns:
- Type
- Promise
remove() → {Promise}
Removes the user from the waitlist
- Source:
Returns:
- Type
- Promise