From 6c294fe803dc3e8f08f317a6092aeaed6d7c7a4b Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 26 Mar 2023 20:23:00 -0400 Subject: [PATCH] Fixed calls for local exported functions configHandler --- Client/utilities/configHandler.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Client/utilities/configHandler.js b/Client/utilities/configHandler.js index 49acb12..589e12e 100644 --- a/Client/utilities/configHandler.js +++ b/Client/utilities/configHandler.js @@ -10,7 +10,7 @@ exports.getConfig = function getConfig() { } exports.getGuildID = function getGuildID() { - const parsedJSON = getConfig(); + const parsedJSON = this.getConfig(); const guildID = parsedJSON.GuildID; log.DEBUG("Guild ID: ", guildID); @@ -18,7 +18,7 @@ exports.getGuildID = function getGuildID() { } exports.getApplicationID = function getApplicationID() { - const parsedJSON = getConfig(); + const parsedJSON = this.getConfig(); const appID = parsedJSON.ApplicationID; log.DEBUG("Application ID: ", appID); @@ -26,7 +26,7 @@ exports.getApplicationID = function getApplicationID() { } exports.getDeviceID = function getDeviceID(){ - const parsedJSON = getConfig(); + const parsedJSON = this.getConfig(); const deviceID = parseInt(parsedJSON.DeviceID); log.DEBUG("Device ID: ", deviceID); @@ -34,7 +34,7 @@ exports.getDeviceID = function getDeviceID(){ } exports.getDeviceName = function getDeviceName(){ - const parsedJSON = getConfig(); + const parsedJSON = this.getConfig(); const deviceName = parsedJSON.DeviceName; log.DEBUG("Device Name: ", deviceName);