Микрофикс чтобы кнопки не появлялись

This commit is contained in:
JonnyBro 2022-08-29 21:46:12 +05:00
parent 1c974302ae
commit 0a04ef8843

View file

@ -158,13 +158,16 @@ class Play extends BaseCommand {
if (!queue.connection) await queue.connect(interaction.member.voice.channel); if (!queue.connection) await queue.connect(interaction.member.voice.channel);
if (!queue.playing) await queue.play(); if (!queue.playing) await queue.play();
return interaction.editReply({ interaction.editReply({
content: interaction.translate("music/play:ADDED_QUEUE", { content: interaction.translate("music/play:ADDED_QUEUE", {
songName: selected.title songName: selected.title
}), }),
components: [], components: [],
embeds: [] embeds: []
}); });
collector.stop();
return;
} catch (error) { } catch (error) {
client.player.deleteQueue(interaction.guildId); client.player.deleteQueue(interaction.guildId);
console.log(error); console.log(error);
@ -191,7 +194,7 @@ class Play extends BaseCommand {
}); });
collector.on("end", async (_, reason) => { collector.on("end", async (_, reason) => {
if (reason) { if (reason === "idle") {
rows.forEach(row => { rows.forEach(row => {
row.components.forEach(component => { row.components.forEach(component => {
component.setDisabled(true); component.setDisabled(true);