mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user