mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
make token not enumerable (#1620)
This commit is contained in:
parent
63e54982f4
commit
0a337a4646
1 changed files with 1 additions and 0 deletions
|
|
@ -133,6 +133,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue