mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
Improved the definition of structures' client properties
This commit is contained in:
@@ -12,10 +12,11 @@ class PartialGuild {
|
||||
constructor(client, data) {
|
||||
/**
|
||||
* The Client that instantiated this PartialGuild
|
||||
* @name PartialGuild#client
|
||||
* @type {Client}
|
||||
* @readonly
|
||||
*/
|
||||
this.client = client;
|
||||
Object.defineProperty(this, 'client', { enumerable: false, configurable: false });
|
||||
Object.defineProperty(this, 'client', { value: client });
|
||||
|
||||
this.setup(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user