logging when joinVoice not work

This commit is contained in:
Histmy 2021-11-07 11:29:56 +01:00
parent 8dd0139a14
commit e0d278e013

View File

@ -71,6 +71,7 @@ export const joinVoice = async (channel: VoiceChannel | StageChannel | string, g
await entersState(conn, VoiceConnectionStatus.Ready, 3e4) await entersState(conn, VoiceConnectionStatus.Ready, 3e4)
.catch(err => { .catch(err => {
conn!.destroy(); conn!.destroy();
console.log("pri pripojovani do vojsu nastala chyba:");
throw err; throw err;
}); });
return { conn, prev: true }; return { conn, prev: true };