mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 17:43:30 +01:00
Improved the definition of structures' client properties
This commit is contained in:
@@ -7,10 +7,11 @@ class Role {
|
||||
constructor(guild, data) {
|
||||
/**
|
||||
* The client that instantiated the role
|
||||
* @name Role#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 the role belongs to
|
||||
|
||||
Reference in New Issue
Block a user