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 85ec7c64bc
commit f1a74f214e

View File

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