Fix error status in client join
This commit is contained in:
@@ -24,7 +24,7 @@ exports.getStatus = (req, res) => {
|
|||||||
* Start the bot and join the server and preset specified
|
* Start the bot and join the server and preset specified
|
||||||
*/
|
*/
|
||||||
exports.joinServer = async (req, res) => {
|
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 deviceId = process.env.AUDIO_DEVICE_ID;
|
||||||
const channelId = req.body.channelId;
|
const channelId = req.body.channelId;
|
||||||
const clientId = req.body.clientId;
|
const clientId = req.body.clientId;
|
||||||
|
|||||||
Reference in New Issue
Block a user