Skip to content

Commit

Permalink
Merge pull request #280 from EdVoids/patch-7
Browse files Browse the repository at this point in the history
Fixing Queue text not sending
  • Loading branch information
Sai Teja Madha authored Jan 30, 2023
2 parents 15cd31b + fcc81e8 commit 22df4bd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/handlers/lavaclient.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,8 @@ module.exports = (client) => {
});

lavaclient.on("nodeQueueFinish", async (_node, queue) => {
const channel = client.channels.cache.get(queue.player.channelId);
channel.safeSend("Queue has ended.");
queue.player.disconnect();
await client.musicManager.destroyPlayer(queue.player.guildId);
queue.data.channel.safeSend("Queue has ended.");
await client.musicManager.destroyPlayer(queue.player.guildId).then(queue.player.disconnect());
});

return lavaclient;
Expand Down

0 comments on commit 22df4bd

Please sign in to comment.