mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
Фикс queue?
This commit is contained in:
parent
ff03ef4b2f
commit
7a7580368d
3 changed files with 5 additions and 5 deletions
|
@ -51,8 +51,8 @@ class Clips extends BaseCommand {
|
||||||
client.player.play(interaction.member.voice.channel, query, {
|
client.player.play(interaction.member.voice.channel, query, {
|
||||||
nodeOptions: {
|
nodeOptions: {
|
||||||
metadata: {
|
metadata: {
|
||||||
channel: interaction.channel,
|
|
||||||
client,
|
client,
|
||||||
|
channel: interaction.channel,
|
||||||
requestedBy: interaction.user,
|
requestedBy: interaction.user,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -55,8 +55,8 @@ class Play extends BaseCommand {
|
||||||
client.player.play(interaction.member.voice.channel, searchResult, {
|
client.player.play(interaction.member.voice.channel, searchResult, {
|
||||||
nodeOptions: {
|
nodeOptions: {
|
||||||
metadata: {
|
metadata: {
|
||||||
channel: interaction.channel,
|
|
||||||
client,
|
client,
|
||||||
|
channel: interaction.channel,
|
||||||
requestedBy: interaction.user,
|
requestedBy: interaction.user,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -169,7 +169,7 @@ function generateQueueEmbeds(interaction, queue) {
|
||||||
queue.repeatMode === QueueRepeatMode.AUTOPLAY ? interaction.translate("music/nowplaying:AUTOPLAY") :
|
queue.repeatMode === QueueRepeatMode.AUTOPLAY ? interaction.translate("music/nowplaying:AUTOPLAY") :
|
||||||
queue.repeatMode === QueueRepeatMode.QUEUE ? interaction.translate("music/nowplaying:QUEUE") :
|
queue.repeatMode === QueueRepeatMode.QUEUE ? interaction.translate("music/nowplaying:QUEUE") :
|
||||||
queue.repeatMode === QueueRepeatMode.TRACK ? interaction.translate("music/nowplaying:TRACK") : interaction.translate("common:DISABLED")
|
queue.repeatMode === QueueRepeatMode.TRACK ? interaction.translate("music/nowplaying:TRACK") : interaction.translate("common:DISABLED")
|
||||||
}\`\n${interaction.translate("music/queue:DURATION")}: \`${interaction.client.functions.convertTime(Date.now() + queue.totalTime, false, true, interaction.guild.data.language)}\`\n[${currentTrack.title}](${currentTrack.url})\n> ${interaction.translate("music/queue:ADDED")} ${currentTrack.requestedBy}\n\n**${interaction.translate("music/queue:NEXT")}**\n${interaction.translate("music/queue:NO_QUEUE")}`)
|
}\`\n${currentTrack.url.startsWith("./clips") ? `${currentTrack.title} (clips)` : `[${currentTrack.title}](${currentTrack.url})`}\n> ${interaction.translate("music/queue:ADDED")} ${currentTrack.requestedBy}\n\n**${interaction.translate("music/queue:NEXT")}**\n${interaction.translate("music/queue:NO_QUEUE")}`)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
embeds.push(embed);
|
embeds.push(embed);
|
||||||
|
|
||||||
|
@ -181,7 +181,7 @@ function generateQueueEmbeds(interaction, queue) {
|
||||||
let j = i;
|
let j = i;
|
||||||
k += 10;
|
k += 10;
|
||||||
|
|
||||||
const info = current.map(track => `${++j}. [${track.title}](${track.url})\n> ${interaction.translate("music/queue:ADDED")} ${track.requestedBy}`).join("\n");
|
const info = current.map(track => `${++j}. ${track.url.startsWith("./clips") ? `${track.title} (clips)` : `[${track.title}](${track.url})`}\n> ${interaction.translate("music/queue:ADDED")} ${track.requestedBy}`).join("\n");
|
||||||
|
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setTitle(interaction.translate("music/nowplaying:CURRENTLY_PLAYING"))
|
.setTitle(interaction.translate("music/nowplaying:CURRENTLY_PLAYING"))
|
||||||
|
@ -191,7 +191,7 @@ function generateQueueEmbeds(interaction, queue) {
|
||||||
queue.repeatMode === QueueRepeatMode.AUTOPLAY ? interaction.translate("music/nowplaying:AUTOPLAY") :
|
queue.repeatMode === QueueRepeatMode.AUTOPLAY ? interaction.translate("music/nowplaying:AUTOPLAY") :
|
||||||
queue.repeatMode === QueueRepeatMode.QUEUE ? interaction.translate("music/nowplaying:QUEUE") :
|
queue.repeatMode === QueueRepeatMode.QUEUE ? interaction.translate("music/nowplaying:QUEUE") :
|
||||||
queue.repeatMode === QueueRepeatMode.TRACK ? interaction.translate("music/nowplaying:TRACK") : interaction.translate("common:DISABLED")
|
queue.repeatMode === QueueRepeatMode.TRACK ? interaction.translate("music/nowplaying:TRACK") : interaction.translate("common:DISABLED")
|
||||||
}\`\n${interaction.translate("music/queue:DURATION")}: \`${interaction.client.functions.convertTime(Date.now() + queue.node.streamTime, false, true, interaction.guild.data.language)}\`\n[${currentTrack.title}](${currentTrack.url})\n> ${interaction.translate("music/queue:ADDED")} ${currentTrack.requestedBy}\n\n**${interaction.translate("music/queue:NEXT")}**\n${info}`)
|
}\`\n${currentTrack.url.startsWith("./clips") ? `${currentTrack.title} (clips)` : `[${currentTrack.title}](${currentTrack.url})`}\n> ${interaction.translate("music/queue:ADDED")} ${currentTrack.requestedBy}\n\n**${interaction.translate("music/queue:NEXT")}**\n${info}`)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
embeds.push(embed);
|
embeds.push(embed);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue