mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 13:14:58 +05:00
Фикс фикса
This commit is contained in:
parent
ceff32f974
commit
75e31dc6da
1 changed files with 2 additions and 2 deletions
|
@ -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: []
|
||||||
|
|
Loading…
Reference in a new issue