feat(ui): overhaul remaining embeds for help, queue ops, audio mastering & community

- Upgrade %help overview with feature highlights and %help <command> with rich embed inspector
- Fix %playnext embed wrapping bug causing [object Object] and add Playing Next badge
- Upgrade %trackopt set/get/play with visual cut-window timeline bars
- Upgrade %remove and %move with queue change receipt cards
- Upgrade %normalize and %volumedefault with EBU R128 mastering and volume slider bars
- Upgrade %whoknows with ranked Crown Holder cards and podium medals
- Upgrade %invite and %support with rich in-embed markdown links (no button dependencies)
- Upgrade voice join and %vote with branded status embeds
This commit is contained in:
NoLogicAlan committed 2026-10-25 03:54:02 +03:00
1 parent 4c3c04bd7d
commit 8689dee50a
13 files changed
+332 -99

No files matched your search

+15 -1
View File
@@ -70,7 +70,21 @@ export async function run(message, data) {
const requester = message.author?.id ?? message.authorId ?? null;
const messages = p.playFirst(query, provider, { requester });
messages.on("message", d => {
const embed = new EmbedBuilder().setColor(getGlobalColor()).setDescription(d);
let embed;
if (d instanceof EmbedBuilder) {
embed = d;
} else if (d?.embeds?.[0]) {
embed = d.embeds[0];
} else {
embed = new EmbedBuilder().setColor(getGlobalColor()).setDescription(String(d));
}
/* Set Playing Next author tag on the added track embed */
const authorName = embed.data?.author?.name || "";
if (authorName.includes("Added to Queue") || !authorName) {
embed.setAuthor({ name: "⚡ Playing Next • Top of Queue (#1)" });
}
if (statusMsg) statusMsg.edit({ embeds: [embed] }).catch(() => {});
});
}