mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
backport: make Webhook token not enumerable
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user