add more things to clientuser (#1066)

* add more things to clientuser

* add desc
This commit is contained in:
Gus Caplan
2017-01-05 10:38:48 -06:00
committed by Amish Shah
parent fdc8050188
commit a66b2b7ec5

View File

@@ -50,6 +50,27 @@ class ClientUser extends User {
* @type {Object}
*/
this.settings = {};
/**
* If the user has discord premium (nitro)
* <warn>This is only filled when using a user account.</warn>
* @type {?boolean}
*/
this.premium = typeof data.premium === 'boolean' ? data.premium : null;
/**
* If the user has MFA enabled on their account
* <warn>This is only filled when using a user account.</warn>
* @type {?boolean}
*/
this.mfaEnabled = typeof data.mfa_enabled === 'boolean' ? data.mfa_enabled : null;
/**
* If the user has ever used a mobile device on discord
* <warn>This is only filled when using a user account.</warn>
* @type {?boolean}
*/
this.mobile = typeof data.mobile === 'boolean' ? data.mobile : null;
}
edit(data) {