From f1a74f214e7c66a754dbbad98a9ccca70cb389c7 Mon Sep 17 00:00:00 2001 From: Will Nelson Date: Sun, 25 Jun 2017 12:48:30 -0700 Subject: [PATCH] make token not enumerable (#1620) --- src/client/Client.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/Client.js b/src/client/Client.js index 861becb2c..51e441cb4 100644 --- a/src/client/Client.js +++ b/src/client/Client.js @@ -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