mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
backport: make Webhook token not enumerable
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user