mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 13:14:58 +05:00
Микрофикс чтобы кнопки не появлялись
This commit is contained in:
parent
1c974302ae
commit
0a04ef8843
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue