backport: make Webhook token not enumerable

This commit is contained in:
Lewdcario 2018-07-26 09:51:47 -06:00
parent 488b1eb4ee
commit 96011cf68f
No known key found for this signature in database
GPG key ID: F9A141E5527C6660

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