diff --git a/Client/controllers/audioController.js b/Client/controllers/audioController.js index c6ba61f..b93da11 100644 --- a/Client/controllers/audioController.js +++ b/Client/controllers/audioController.js @@ -43,7 +43,7 @@ exports.getAudioDevices = async function getAudioDevices(){ * @returns new portAudio.AudioIO */ exports.createAudioInstance = async function createAudioInstance() { - const selectedDevice = await confirmAudioDevice({deviceId: getDeviceID()});//{deviceName: "VoiceMeeter VAIO3 Output (VB-Au"}); + const selectedDevice = await this.confirmAudioDevice({deviceId: getDeviceID()});//{deviceName: "VoiceMeeter VAIO3 Output (VB-Au"}); log.DEBUG("Device selected from config: ", selectedDevice); // Create an instance of AudioIO with outOptions (defaults are as below), which will return a WritableStream return new alsaInstance({ diff --git a/Client/controllers/botController.js b/Client/controllers/botController.js index ebfb734..115051a 100644 --- a/Client/controllers/botController.js +++ b/Client/controllers/botController.js @@ -75,10 +75,10 @@ exports.joinServer = (req, res) => { const presetName = req.body.presetName; const guildObj = getGuildFromChannel(channelId, req); - if (!channelId || !presetName || !guildId) return res.status(400).json({'message': "Request does not have all components to proceed"}); + if (!channelId || !presetName || !guildObj) return res.status(400).json({'message': "Request does not have all components to proceed"}); // join the sever - join({guildID: guildId, guildObj: guildObj, channelID: channelId, callback: () => { + join({guildID: guildObj.id, guildObj: guildObj, channelID: channelId, callback: () => { return req.sendStatus(202); }}); }