mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 17:52:55 +00:00
parent
cda408534a
commit
b255af0825
1 changed files with 8 additions and 8 deletions
|
|
@ -20,6 +20,13 @@ class User extends Base {
|
||||||
*/
|
*/
|
||||||
this.id = data.id;
|
this.id = data.id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether or not the user is a bot
|
||||||
|
* @type {boolean}
|
||||||
|
* @name User#bot
|
||||||
|
*/
|
||||||
|
this.bot = Boolean(data.bot);
|
||||||
|
|
||||||
this._patch(data);
|
this._patch(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -40,18 +47,11 @@ class User extends Base {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ID of the user's avatar
|
* The ID of the user's avatar
|
||||||
* @type {string}
|
* @type {?string}
|
||||||
* @name User#avatar
|
* @name User#avatar
|
||||||
*/
|
*/
|
||||||
if (typeof data.avatar !== 'undefined') this.avatar = data.avatar;
|
if (typeof data.avatar !== 'undefined') this.avatar = data.avatar;
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether or not the user is a bot
|
|
||||||
* @type {boolean}
|
|
||||||
* @name User#bot
|
|
||||||
*/
|
|
||||||
if (typeof this.bot === 'undefined' && typeof data.bot !== 'undefined') this.bot = Boolean(data.bot);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The ID of the last message sent by the user, if one was sent
|
* The ID of the last message sent by the user, if one was sent
|
||||||
* @type {?Snowflake}
|
* @type {?Snowflake}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue