From 300714774ec57489574e9bc86722a1b0e530c747 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Thu, 6 Feb 2020 08:04:15 +0200 Subject: [PATCH] Update client.js --- src/struct/client.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/struct/client.js b/src/struct/client.js index 6c7b67c9..27799281 100644 --- a/src/struct/client.js +++ b/src/struct/client.js @@ -52,6 +52,10 @@ module.exports = class extends Client { this.db.FieldValue = require('firebase-admin').firestore.FieldValue; + if (this.config.devMode) { + this.config.token = this.config.devToken; + } + this.on('ready', () => { require(`${events}ready`).execute(this, Discord); });