make token not enumerable (#1620)

This commit is contained in:
Will Nelson
2017-06-25 12:48:30 -07:00
committed by Amish Shah
parent 63e54982f4
commit 0a337a4646

View File

@@ -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