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);