mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04: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 => {
|
||||
const type = i?.values[0];
|
||||
const mode = type === 3 ? QueueRepeatMode.AUTOPLAY :
|
||||
type === 2 ? QueueRepeatMode.QUEUE :
|
||||
type === 1 ? QueueRepeatMode.TRACK : QueueRepeatMode.OFF;
|
||||
const mode = type === "3" ? QueueRepeatMode.AUTOPLAY :
|
||||
type === "2" ? QueueRepeatMode.QUEUE :
|
||||
type === "1" ? QueueRepeatMode.TRACK : QueueRepeatMode.OFF;
|
||||
|
||||
queue.setRepeatMode(mode);
|
||||
return i.update({
|
||||
content: interaction.translate(`music/loop:${type === 3 ? "AUTOPLAY_ENABLED" :
|
||||
type === 2 ? "QUEUE_ENABLED" : type === 1 ? "TRACK_ENABLED" : "LOOP_DISABLED"}`),
|
||||
content: interaction.translate(`music/loop:${type === "3" ? "AUTOPLAY_ENABLED" :
|
||||
type === "2" ? "QUEUE_ENABLED" : type === "1" ? "TRACK_ENABLED" : "LOOP_DISABLED"}`),
|
||||
components: []
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue