mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Improved the definition of structures' client properties
This commit is contained in:
@@ -14,10 +14,11 @@ class UserProfile {
|
||||
|
||||
/**
|
||||
* The Client that created the instance of the the UserProfile.
|
||||
* @name UserProfile#client
|
||||
* @type {Client}
|
||||
* @readonly
|
||||
*/
|
||||
this.client = this.user.client;
|
||||
Object.defineProperty(this, 'client', { enumerable: false, configurable: false });
|
||||
Object.defineProperty(this, 'client', { value: user.client });
|
||||
|
||||
/**
|
||||
* Guilds that the client user and the user share
|
||||
|
||||
Reference in New Issue
Block a user