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