From 96011cf68f82f2a4f359f07d1e3fc2962cf2f902 Mon Sep 17 00:00:00 2001 From: Lewdcario Date: Thu, 26 Jul 2018 09:51:47 -0600 Subject: [PATCH] backport: make Webhook token not enumerable --- src/structures/Webhook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Webhook.js b/src/structures/Webhook.js index 5ce1e76d9..8936f1d2e 100644 --- a/src/structures/Webhook.js +++ b/src/structures/Webhook.js @@ -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