backport: make Webhook token not enumerable

This commit is contained in:
Lewdcario
2018-07-26 09:51:47 -06:00
parent 488b1eb4ee
commit 96011cf68f

View File

@@ -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