refactor(Webhook): make token not enumerable (#2566)

* Hide Webhook#token (consistency with Client#token)

* Make `Webhook#token` writable

* fix: devsnek's requested change

Webhook#token must be both writable and configurable.
This commit is contained in:
Kyra
2018-07-18 11:37:57 +02:00
committed by SpaceEEC
parent 3d25277839
commit e0378cf350

View File

@@ -28,7 +28,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