mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 05:22:15 +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 {
|
||||
constructor(client, data) {
|
||||
super(client);
|
||||
this._patch(data);
|
||||
}
|
||||
|
||||
_patch(data) {
|
||||
/**
|
||||
* The ID of the user
|
||||
* @type {Snowflake}
|
||||
*/
|
||||
this.id = data.id;
|
||||
|
||||
this._patch(data);
|
||||
}
|
||||
|
||||
_patch(data) {
|
||||
/**
|
||||
* The username of the user
|
||||
* @type {string}
|
||||
|
|
|
|||
Loading…
Reference in a new issue