From 041e0d485d9baa74d0f6bfba112f56052cb4dafa Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sat, 10 Jun 2023 20:46:43 -0400 Subject: [PATCH] Fix error status in client join --- Client/controllers/botController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/controllers/botController.js b/Client/controllers/botController.js index 8880178..5f60b77 100644 --- a/Client/controllers/botController.js +++ b/Client/controllers/botController.js @@ -24,7 +24,7 @@ exports.getStatus = (req, res) => { * Start the bot and join the server and preset specified */ exports.joinServer = async (req, res) => { - if (!req.body.clientId || !req.body.channelId) return res.send("500").json({"message": "You must include the client ID (discord token), channel ID (The discord ID of the channel to connect to)"}); + if (!req.body.clientId || !req.body.channelId) return res.status(500).json({"message": "You must include the client ID (discord token), channel ID (The discord ID of the channel to connect to)"}); const deviceId = process.env.AUDIO_DEVICE_ID; const channelId = req.body.channelId; const clientId = req.body.clientId;