mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 17:52:55 +00:00
add more things to clientuser (#1066)
* add more things to clientuser * add desc
This commit is contained in:
parent
fdc8050188
commit
a66b2b7ec5
1 changed files with 21 additions and 0 deletions
|
|
@ -50,6 +50,27 @@ class ClientUser extends User {
|
||||||
* @type {Object}
|
* @type {Object}
|
||||||
*/
|
*/
|
||||||
this.settings = {};
|
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) {
|
edit(data) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue