mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
backport: make Webhook token not enumerable
This commit is contained in:
parent
488b1eb4ee
commit
96011cf68f
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ class Webhook {
|
|||
* The token for the webhook
|
||||
* @type {string}
|
||||
*/
|
||||
this.token = data.token;
|
||||
Object.defineProperty(this, 'token', { value: data.token, writable: true, configurable: true });
|
||||
|
||||
/**
|
||||
* The avatar for the webhook
|
||||
|
|
|
|||
Loading…
Reference in a new issue