This commit is contained in:
Travis CI 2017-01-05 16:39:40 +00:00
parent a984f1d29c
commit 608ee177cb
2 changed files with 25 additions and 4 deletions

View file

@ -8534,6 +8534,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) {

File diff suppressed because one or more lines are too long