Change showcase of current settings

This commit is contained in:
Christopher Cookman 2025-09-15 06:50:41 -06:00
parent dd1979caf9
commit 6ed299cf2b

View file

@ -17,11 +17,25 @@ const execute = async (interaction) => {
// Proceed with settings menu
await interaction.reply({ ephemeral: true, content: "Getting things ready..." });
await interaction.user.send({ embeds: [{
title: `Hub Settings for ${hubResult[0].name}`,
description: `**Short Description:** ${hubResult[0].shortDescription}\n**Long Description:** ${hubResult[0].longDescription}\n**Allow Gift Purchase:** ${hubResult[0].allowGiftPurchase ? "Yes" : "No"}\n**Terms of Service:** ${hubResult[0].tos}\n\nHub Secret Key: ||${hubResult[0].secretKey}||`,
title: 'Welcome to Hub Settings!',
description: 'Below are your current hub settings.',
color: 0x00AE86,
fields: [
{ name: "Hub ID", value: hubResult[0].id },
{ name: "Hub Name", value: hubResult[0].name },
{ name: "Owner Discord ID", value: hubResult[0].ownerId },
{ name: "Discord Guild ID", value: hubResult[0].discordGuild },
{ name: "Short Description", value: hubResult[0].shortDescription },
{ name: "Long Description", value: hubResult[0].longDescription },
{ name: "Allow Gift Purchase", value: hubResult[0].allowGiftPurchase ? "Yes" : "No" },
{ name: "Terms of Service", value: hubResult[0].tos },
{ name: "Background Music ID", value: hubResult[0].bgmId ? hubResult[0].bgmId : "None" },
{ name: "Secret Key", value: `||\`${hubResult[0].secretKey}\`||` }
]
},{
description: `Options`,
color: 0x00AE86,
fields: [
{ name: "Main Menu", value: "Type an option number, or `cancel` to close." },
{ name: "1. Edit Short Description", value: "Change the short description of the hub." },
{ name: "2. Edit Long Description", value: "Change the long description of the hub." },
{ name: "3. Toggle Allow Gift Purchase", value: "Enable or disable allowing users to buy gifts for others on this hub." },