profile update with badges and achievements

This commit is contained in:
DeSqBlocki
2026-08-22 20:27:42 +02:00
parent c630543f9e
commit e437c051b9
7 changed files with 542 additions and 1441 deletions
+22
View File
@@ -0,0 +1,22 @@
const {
buildStatsEmbed,
buildProfileButtons,
getProfileTargetId
} = require("../../utils/profileSystem");
module.exports = {
name: "profileStats",
async execute(interaction) {
const userId = getProfileTargetId(interaction);
if (!userId) return;
const user = await interaction.client.users.fetch(userId);
const embed = await buildStatsEmbed(interaction.guildId, user);
return interaction.update({
embeds: [embed],
components: buildProfileButtons()
});
}
};