mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
make token not enumerable (#1620)
This commit is contained in:
@@ -133,6 +133,7 @@ class Client extends EventEmitter {
|
|||||||
*/
|
*/
|
||||||
this.presences = new Collection();
|
this.presences = new Collection();
|
||||||
|
|
||||||
|
Object.defineProperty(this, 'token', { writable: true });
|
||||||
if (!this.token && 'CLIENT_TOKEN' in process.env) {
|
if (!this.token && 'CLIENT_TOKEN' in process.env) {
|
||||||
/**
|
/**
|
||||||
* Authorization token for the logged in user/bot
|
* Authorization token for the logged in user/bot
|
||||||
|
|||||||
Reference in New Issue
Block a user