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:
NoLogicAlan committed 2026-10-25 03:19:11 +03:00
1 parent 2494bf79d6
commit 8874ed1ec6
14 files changed
+477 -102

No files matched your search

+10 -4
View File
@@ -5,7 +5,6 @@
import { CommandBuilder } from "../src/commands/index.mjs";
import { EmbedBuilder } from "@fluxerjs/core";
import { getGlobalColor } from "../src/ui/index.mjs";
/**
* @type {CommandBuilder}
@@ -52,10 +51,17 @@ export async function run(msg, data) {
return msg.replyEmbed(res).catch(() => {});
}
const count = p.queue.size();
p.clear();
const pluralStr = count === 1 ? this.t(msg, "responses.play.trackSingle") : this.t(msg, "responses.play.trackPlural");
const prefix = this.handler.getPrefix(msg.message?.guildId ?? msg.channel?.guildId) || "%";
const embed = new EmbedBuilder()
.setColor(getGlobalColor())
.setDescription(this.t(msg, "responses.clear.cleared"))
;
.setColor(0xe9196c)
.setAuthor({ name: `🗑️ ${this.t(msg, "responses.clear.clearedTitle")}` })
.setTitle(this.t(msg, "responses.clear.cleared"))
.setDescription(this.t(msg, "responses.clear.clearedSummary", { count, plural: pluralStr }))
.setFooter({ text: `${prefix}play <song> to start a new queue` });
msg.reply({ embeds: [embed] }).catch(() => {});
}