mirror of
https://github.com/danbulant/discord.js
synced 2026-05-30 12:51:55 +00:00
make token not enumerable (#1620)
This commit is contained in:
parent
85ec7c64bc
commit
f1a74f214e
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue