From c380bb277083eb41e247ca5e03d3d8ae74a99514 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 26 Mar 2023 20:59:15 -0400 Subject: [PATCH] Changed status object VC key to be a boolean --- Client/controllers/commandController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Client/controllers/commandController.js b/Client/controllers/commandController.js index c943540..7e58215 100644 --- a/Client/controllers/commandController.js +++ b/Client/controllers/commandController.js @@ -97,7 +97,8 @@ exports.status = async function status({interaction= undefined, guildID= undefin const voiceConnection = getVoiceConnection(guildID); const statusObj = { - "guildID": guildID, "voiceConnection": voiceConnection + "guildID": guildID, + "voiceConnection": typeof g !== 'undefined' ? true : false // True if there is a voice connection, false if undefined } log.DEBUG('Status Object: ', statusObj);