mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user