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

23 lines
570 B
JavaScript

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