mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00: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:
parent
d8c97be142
commit
96a0655609
1 changed files with 1 additions and 1 deletions
|
|
@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue