Use the correct function to close audio instance

This commit is contained in:
Logan Cusano
2023-03-26 20:46:21 -04:00
parent 5e31346bc9
commit 07ca9e88e0

View File

@@ -51,7 +51,7 @@ exports.join = async function join({interaction= undefined, guildID= undefined,
// Exit the audio handler when the bot disconnects
voiceConnection.on(VoiceConnectionStatus.Destroyed, () => {
audioInstance.quit();
audioInstance.close();
})
if (guildID && callback) callback();