mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
feat(ui): upgrade playback action embeds
- Redesign %skip with skipped track thumbnail, elapsed time, and up-next preview - Upgrade %pause and %resume with rich track cards and timestamp badges - Add visual volume meter gauge (0-150%) to %volume - Modernize %loop with single-track and queue-loop status badges - Enhance %autoplay with status pills and recommendation engine details - Polish %shuffle and %clear with queue reorder summaries and track counts - Full translations added across all 6 locales (en, ar-SA, ckb, tr, de-DE, pt-BR)
This commit is contained in:
1 parent
2494bf79d6
commit
8874ed1ec6
14 files changed
+477
-102
No files matched your search
+18
-10
@@ -579,6 +579,8 @@ export async function run(msg, data) {
|
||||
const p = await this.getPlayer(msg, true, true, false);
|
||||
if (!p) return;
|
||||
|
||||
const prefix = this.handler.getPrefix(msg.message?.guildId ?? msg.channel?.guildId) || "%";
|
||||
|
||||
p._autoplay = !p._autoplay;
|
||||
|
||||
if (p._autoplay) {
|
||||
@@ -589,11 +591,14 @@ export async function run(msg, data) {
|
||||
p._autoplayHandler().catch(() => {});
|
||||
}
|
||||
|
||||
return msg.reply({
|
||||
embeds: [new EmbedBuilder()
|
||||
.setColor(getGlobalColor())
|
||||
.setDescription(this.t(msg, "responses.autoplay.enabled"))]
|
||||
});
|
||||
const embed = new EmbedBuilder()
|
||||
.setColor(0xe9196c)
|
||||
.setAuthor({ name: `🔁 ${this.t(msg, "responses.autoplay.autoplayTitleEnabled")}` })
|
||||
.setTitle("🟢 Active")
|
||||
.setDescription(this.t(msg, "responses.autoplay.autoplayDescEnabled"))
|
||||
.setFooter({ text: `${this.t(msg, "responses.autoplay.autoplayEngine")} • ${prefix}autoplay to disable` });
|
||||
|
||||
return msg.reply({ embeds: [embed] });
|
||||
} else {
|
||||
detachAutoplay(p);
|
||||
p._autoplayHistory = [];
|
||||
@@ -606,10 +611,13 @@ export async function run(msg, data) {
|
||||
p._autoplaySeedTags = null;
|
||||
p._autoplayPickedVids = null;
|
||||
|
||||
return msg.reply({
|
||||
embeds: [new EmbedBuilder()
|
||||
.setColor(getGlobalColor())
|
||||
.setDescription(this.t(msg, "responses.autoplay.disabled"))]
|
||||
});
|
||||
const embed = new EmbedBuilder()
|
||||
.setColor(0xe9196c)
|
||||
.setAuthor({ name: `⏹️ ${this.t(msg, "responses.autoplay.autoplayTitleDisabled")}` })
|
||||
.setTitle("🔴 Disabled")
|
||||
.setDescription(this.t(msg, "responses.autoplay.autoplayDescDisabled"))
|
||||
.setFooter({ text: `${prefix}autoplay to enable` });
|
||||
|
||||
return msg.reply({ embeds: [embed] });
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user