mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
refactor(WebhookClient): make token property non-enumerable (#2861)
* make WebhookClient#token non-enumerable parity with Client to add the barest protection against accidental exposure * requested change
This commit is contained in:
@@ -20,7 +20,7 @@ class WebhookClient extends BaseClient {
|
||||
super(options);
|
||||
Object.defineProperty(this, 'client', { value: this });
|
||||
this.id = id;
|
||||
this.token = token;
|
||||
Object.defineProperty(this, 'token', { value: token, writable: true, configurable: true });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user