mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
feat(ui): overhaul queue and playback embeds with brand color #e9196c and full locales
- Redesign %np, Added-to-Queue, and Auto-Announcement embeds with rich 3-column layouts - Standardize all embeds to brand color #e9196c - Transform Queue-Ended announcement with quick-action suggestions (%radio, %autoplay) - Unify message forwarder in commands/play to support rich EmbedBuilder payloads - Add native localization keys across all 6 supported locales (en, ar-SA, tr, de-DE, pt-BR, ckb)
This commit is contained in:
1 parent
af2c725b54
commit
53e3a7e4de
11 files changed
+408
-96
No files matched your search
+3
-3
@@ -33,14 +33,14 @@ export async function run(msg) {
|
||||
|
||||
try {
|
||||
const data = await p.nowPlaying();
|
||||
if (!data?.msg) {
|
||||
if (!data?.msg && !data?.embed) {
|
||||
loadingMsg.edit({ embeds: [new EmbedBuilder().setColor(getGlobalColor()).setDescription(this.t(msg, "responses._common.nothingPlaying"))] }).catch(() => {});
|
||||
return;
|
||||
}
|
||||
const embed = new EmbedBuilder()
|
||||
const embed = data.embed || new EmbedBuilder()
|
||||
.setColor(getGlobalColor())
|
||||
.setDescription(data.msg);
|
||||
if (data.image) embed.setThumbnail(data.image);
|
||||
if (!data.embed && data.image) embed.setThumbnail(data.image);
|
||||
|
||||
loadingMsg.edit({ embeds: [embed] }).catch(() => {});
|
||||
} catch (e) {
|
||||
|
||||
Reference in new issue
Block a user