Potentially fix #1870?

This commit is contained in:
Amish Shah
2017-09-04 14:14:11 +01:00
parent ea1949a0e2
commit 2e4de62ddf

View File

@@ -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}