added base profile update
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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()
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user