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:
@@ -13,10 +13,11 @@ class GuildMember {
|
||||
constructor(guild, data) {
|
||||
/**
|
||||
* The Client that instantiated this GuildMember
|
||||
* @name GuildMember#client
|
||||
* @type {Client}
|
||||
* @readonly
|
||||
*/
|
||||
this.client = guild.client;
|
||||
Object.defineProperty(this, 'client', { enumerable: false, configurable: false });
|
||||
Object.defineProperty(this, 'client', { value: guild.client });
|
||||
|
||||
/**
|
||||
* The guild that this member is part of
|
||||
|
||||
Reference in New Issue
Block a user