Skip to content

Commit

Permalink
fix(Node): fix leaveVoiceChannel throw for lavalink player not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Fab1o0107 committed Dec 26, 2023
1 parent 0e72427 commit 1ac9a7a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,14 @@ export class Node {
this.manager.connections.delete(guildId);
}
if (player) {
await player.destroyPlayer();
player.clean();

try {
await player.destroyPlayer();
} catch {
/* empty */
}

this.manager.players.delete(guildId);
}

Expand Down

0 comments on commit 1ac9a7a

Please sign in to comment.