forgot to push it lmaoooooo is like 3 days

This commit is contained in:
NoLogicAlan committed 2026-04-16 16:01:18 +03:00
1 parent 6341f4e68f
commit 47b1615cbc
9 files changed
+136 -67

No files matched your search

+10 -3
View File
@@ -118,15 +118,22 @@ export async function run(msg) {
`⏱️ Session expires in ${Math.ceil(timeout / 60000)}m of inactivity`
].join("\n");
// avatarURL may be a plain property (Fluxer) or a method— call it if
// it's a function, otherwise use it as-is so the footer icon works in both cases.
const avatarUrl = typeof msg.author?.avatarURL === "function"
? msg.author.avatarURL()
: msg.author?.avatarURL ?? null;
const builder = new EmbedBuilder()
.setColor(getGlobalColor())
.setTitle("🎧 Music Player Controls")
.setDescription(description)
.setFooter({
text: `Requested by ${msg.author?.username || "Unknown"} • Controls active`,
iconURL: msg.author?.avatarURL
})
.setTimestamp();
iconURL: avatarUrl
});
// setTimestamp() is not verified on @fluxerjs/core's EmbedBuilder — guard it.
if (typeof builder.setTimestamp === "function") builder.setTimestamp();
if (current?.thumbnail) builder.setThumbnail(current.thumbnail);
return builder.toJSON();
};