mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04: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.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);
|
||||
|
|
Loading…
Reference in a new issue