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