mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 01:01:30 +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
|
* The token for the webhook
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
this.token = data.token;
|
Object.defineProperty(this, 'token', { value: data.token, writable: true, configurable: true });
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The avatar for the webhook
|
* The avatar for the webhook
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue