mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 17:52:55 +00:00
Potentially fix #1870?
This commit is contained in:
parent
ea1949a0e2
commit
2e4de62ddf
1 changed files with 4 additions and 3 deletions
|
|
@ -13,16 +13,17 @@ const { Error } = require('../errors');
|
||||||
class User extends Base {
|
class User extends Base {
|
||||||
constructor(client, data) {
|
constructor(client, data) {
|
||||||
super(client);
|
super(client);
|
||||||
this._patch(data);
|
|
||||||
}
|
|
||||||
|
|
||||||
_patch(data) {
|
|
||||||
/**
|
/**
|
||||||
* The ID of the user
|
* The ID of the user
|
||||||
* @type {Snowflake}
|
* @type {Snowflake}
|
||||||
*/
|
*/
|
||||||
this.id = data.id;
|
this.id = data.id;
|
||||||
|
|
||||||
|
this._patch(data);
|
||||||
|
}
|
||||||
|
|
||||||
|
_patch(data) {
|
||||||
/**
|
/**
|
||||||
* The username of the user
|
* The username of the user
|
||||||
* @type {string}
|
* @type {string}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue