Accidentally set the wrong variable for the device ID
This commit is contained in:
@@ -25,9 +25,9 @@ exports.getStatus = (req, res) => {
|
|||||||
*/
|
*/
|
||||||
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.send("500").json({"message": "You must include the client ID (discord token), channel ID (The discord ID of the channel to connect to)"});
|
||||||
const deviceId = req.body.deviceId;
|
const deviceId = process.env.AUDIO_DEVICE_ID;
|
||||||
const channelId = req.body.channelId;
|
const channelId = req.body.channelId;
|
||||||
const clientId = process.env.AUDIO_DEVICE_ID;
|
const clientId = req.body.clientId;
|
||||||
const presetName = req.body.presetName;
|
const presetName = req.body.presetName;
|
||||||
const NGThreshold = req.body.NGThreshold ?? 50
|
const NGThreshold = req.body.NGThreshold ?? 50
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user