mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 13:14:58 +05:00
да подавись
This commit is contained in:
parent
7937ae70f6
commit
d3442c282f
1 changed files with 5 additions and 5 deletions
|
@ -76,14 +76,14 @@ class Loop extends BaseCommand {
|
||||||
|
|
||||||
collector.on("collect", async i => {
|
collector.on("collect", async i => {
|
||||||
const type = i?.values[0];
|
const type = i?.values[0];
|
||||||
const mode = type === 3 ? QueueRepeatMode.AUTOPLAY :
|
const mode = type === "3" ? QueueRepeatMode.AUTOPLAY :
|
||||||
type === 2 ? QueueRepeatMode.QUEUE :
|
type === "2" ? QueueRepeatMode.QUEUE :
|
||||||
type === 1 ? QueueRepeatMode.TRACK : QueueRepeatMode.OFF;
|
type === "1" ? QueueRepeatMode.TRACK : QueueRepeatMode.OFF;
|
||||||
|
|
||||||
queue.setRepeatMode(mode);
|
queue.setRepeatMode(mode);
|
||||||
return i.update({
|
return i.update({
|
||||||
content: interaction.translate(`music/loop:${type === 3 ? "AUTOPLAY_ENABLED" :
|
content: interaction.translate(`music/loop:${type === "3" ? "AUTOPLAY_ENABLED" :
|
||||||
type === 2 ? "QUEUE_ENABLED" : type === 1 ? "TRACK_ENABLED" : "LOOP_DISABLED"}`),
|
type === "2" ? "QUEUE_ENABLED" : type === "1" ? "TRACK_ENABLED" : "LOOP_DISABLED"}`),
|
||||||
components: []
|
components: []
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue