Фикс фикса

This commit is contained in:
JonnyBro 2022-08-06 21:13:50 +05:00
parent ceff32f974
commit 75e31dc6da

View file

@ -75,9 +75,9 @@ class Loop extends BaseCommand {
}); });
collector.on("collect", async i => { collector.on("collect", async i => {
const type = QueueRepeatMode[msg?.values[0]]; const type = QueueRepeatMode[i?.values[0]];
queue.setRepeatMode(type); queue.setRepeatMode(type);
i.update({ return i.update({
content: interaction.translate(`music/loop:${type === QueueRepeatMode.AUTOPLAY ? "AUTOPLAY_ENABLED" : content: interaction.translate(`music/loop:${type === QueueRepeatMode.AUTOPLAY ? "AUTOPLAY_ENABLED" :
type === QueueRepeatMode.QUEUE ? "QUEUE_ENABLED" : type === QueueRepeatMode.TRACK ? "TRACK_ENABLED" : "LOOP_DISABLED"}`), type === QueueRepeatMode.QUEUE ? "QUEUE_ENABLED" : type === QueueRepeatMode.TRACK ? "TRACK_ENABLED" : "LOOP_DISABLED"}`),
components: [] components: []