commit
25e22b7daa
@ -36,13 +36,14 @@ class ClientUser extends User {
|
|||||||
|
|
||||||
if ('token' in data) this.client.token = data.token;
|
if ('token' in data) this.client.token = data.token;
|
||||||
|
|
||||||
/**
|
|
||||||
* Nitro state of the user
|
|
||||||
* @type {?boolean}
|
|
||||||
*/
|
|
||||||
this.nitro = Boolean(data.premium || false);
|
|
||||||
|
|
||||||
// Add (Selfbot)
|
// Add (Selfbot)
|
||||||
|
if ('premium_type' in data) {
|
||||||
|
/**
|
||||||
|
* Nitro type of the client user.
|
||||||
|
* @type {?number}
|
||||||
|
*/
|
||||||
|
this.nitroType = data.premium_type;
|
||||||
|
}
|
||||||
if ('purchased_flags' in data) {
|
if ('purchased_flags' in data) {
|
||||||
/**
|
/**
|
||||||
* Purchased state of the client user.
|
* Purchased state of the client user.
|
||||||
|
Loading…
Reference in New Issue
Block a user