Skip to content

Commit

Permalink
[Fix] Fixed disconnect command destroying the queue instead of just d…
Browse files Browse the repository at this point in the history
…isconnecting!
  • Loading branch information
naseif committed Oct 4, 2021
1 parent 63e36a2 commit 79460ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/Music/disconnect.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = {

try {
if (queue) {
await queue.destroy(true);
await queue.connection.disconnect();
await message.channel.send({
embeds: [
embedMessage(
Expand Down
4 changes: 3 additions & 1 deletion commands/Music/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ module.exports = {
},
description: `${tracks.join("\n")}`,
footer: {
text: `Playing Now: ${queue?.nowPlaying() || "Nothing"}`,
text: `Playing Now: ${
queue?.nowPlaying() ? queue?.nowPlaying() : "Nothing"
}`,
},
};

Expand Down

0 comments on commit 79460ad

Please sign in to comment.