Files
ShaiBot/buttons/profile/badges.js
T
2026-08-22 20:13:47 +02:00

23 lines
560 B
JavaScript

const {
buildBadgesEmbed,
buildProfileButtons,
getProfileTargetId
} = require("../../utils/profileSystem");
module.exports = {
name: "profileBadges",
async execute(interaction) {
const userId = getProfileTargetId(interaction);
if (!userId) return;
const user = await interaction.client.users.fetch(userId);
const embed = await buildBadgesEmbed(interaction.guildId, user);
return interaction.update({
embeds: [embed],
components: buildProfileButtons()
});
}
};