Use the correct function to close audio instance
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user