added base profile update

This commit is contained in:
DeSqBlocki
2026-08-22 20:13:47 +02:00
parent 1fd73538fa
commit 8aeab3fb5d
12 changed files with 969 additions and 6 deletions
+34
View File
@@ -0,0 +1,34 @@
const { SlashCommandBuilder } = require("discord.js");
const {
buildProfileOverview,
buildProfileButtons,
ensureGuildBadges
} = require("../../utils/profileSystem");
module.exports = {
data: new SlashCommandBuilder()
.setName("profile")
.setDescription("View a player profile")
.addUserOption(option =>
option
.setName("user")
.setDescription("Player to view")
),
async execute(interaction) {
const user = interaction.options.getUser("user") ?? interaction.user;
await ensureGuildBadges(interaction.guildId);
const embed = await buildProfileOverview(
interaction.guildId,
user
);
return interaction.reply({
embeds: [embed],
components: buildProfileButtons()
});
}
};