From 0a04ef88430766a6def8a0fc477e429aa65bf934 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Mon, 29 Aug 2022 21:46:12 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B8=D0=BA=D1=80=D0=BE=D1=84=D0=B8?= =?UTF-8?q?=D0=BA=D1=81=20=D1=87=D1=82=D0=BE=D0=B1=D1=8B=20=D0=BA=D0=BD?= =?UTF-8?q?=D0=BE=D0=BF=D0=BA=D0=B8=20=D0=BD=D0=B5=20=D0=BF=D0=BE=D1=8F?= =?UTF-8?q?=D0=B2=D0=BB=D1=8F=D0=BB=D0=B8=D1=81=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Music/play.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/commands/Music/play.js b/commands/Music/play.js index a8a2f258..5799afd3 100644 --- a/commands/Music/play.js +++ b/commands/Music/play.js @@ -158,13 +158,16 @@ class Play extends BaseCommand { if (!queue.connection) await queue.connect(interaction.member.voice.channel); if (!queue.playing) await queue.play(); - return interaction.editReply({ + interaction.editReply({ content: interaction.translate("music/play:ADDED_QUEUE", { songName: selected.title }), components: [], embeds: [] }); + + collector.stop(); + return; } catch (error) { client.player.deleteQueue(interaction.guildId); console.log(error); @@ -191,7 +194,7 @@ class Play extends BaseCommand { }); collector.on("end", async (_, reason) => { - if (reason) { + if (reason === "idle") { rows.forEach(row => { row.components.forEach(component => { component.setDisabled(true);