From 43e3e52d21b30be51632af4d8498989bf122e256 Mon Sep 17 00:00:00 2001 From: shni Date: Fri, 3 Oct 2025 22:38:33 -0500 Subject: [PATCH] feat: update interaction replies to use flags instead of ephemeral for improved visibility --- .../messages/alliaces/displayComponentList.ts | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/commands/messages/alliaces/displayComponentList.ts b/src/commands/messages/alliaces/displayComponentList.ts index a329961..7d9d88a 100644 --- a/src/commands/messages/alliaces/displayComponentList.ts +++ b/src/commands/messages/alliaces/displayComponentList.ts @@ -102,8 +102,8 @@ async function handleEmptyBlocksList(message: Message): Promise { filter: (interaction: MessageComponentInteraction) => interaction.user.id === message.author.id }); - helpCollector.on("collect", async (interaction: ButtonInteraction) => { - if (interaction.customId === "show_create_help") { + helpCollector.on("collect", async (interaction: MessageComponentInteraction) => { + if (interaction.isButton() && interaction.customId === "show_create_help") { const helpEmbed: APIEmbed = { color: 0x57f287, title: "šŸ“– GuĆ­a de Creación de Bloques", @@ -278,7 +278,7 @@ async function handleInteractions( if (!interaction.replied && !interaction.deferred) { await interaction.reply({ content: "āŒ Ocurrió un error al procesar la interacción.", - ephemeral: true + flags: 64 // Use flags instead of ephemeral }); } } @@ -336,14 +336,14 @@ async function handleButtonInteraction( case "show_create_commands": await interaction.reply({ content: `šŸ”§ **Crear nuevos bloques:**\n\n• \`!crear-embed \` - Crear bloque bĆ”sico\n• \`!editar-embed \` - Editor avanzado\n\nšŸ’” **Ejemplo:** \`!crear-embed bienvenida\`\n\nšŸ“– **GuĆ­a completa:** Los bloques usan DisplayComponents para crear interfaces modernas e interactivas.`, - ephemeral: true + flags: 64 }); break; case "show_delete_commands": await interaction.reply({ content: `āš ļø **Eliminar bloques:**\n\n• \`!eliminar-embed\` - Panel interactivo de eliminación\n• \`!eliminar-embed \` - Eliminación directa\n\nā— **Advertencia:** La eliminación es irreversible.`, - ephemeral: true + flags: 64 }); break; @@ -356,7 +356,7 @@ async function handleButtonInteraction( await interaction.reply({ content: `šŸ“‹ **Lista Exportada:**\n\`\`\`\n${exportText}\`\`\``, - ephemeral: true + flags: 64 }); break; @@ -440,25 +440,25 @@ async function handleSpecificBlockActions(interaction: ButtonInteraction): Promi const blockName = customId.replace("edit_block_", ""); await interaction.reply({ content: `Usa: \`!editar-embed ${blockName}\``, - ephemeral: true + flags: 64 }); } else if (customId.startsWith("delete_block_")) { const blockName = customId.replace("delete_block_", ""); await interaction.reply({ content: `Usa: \`!eliminar-embed ${blockName}\` para eliminar este bloque de forma segura.`, - ephemeral: true + flags: 64 }); } else if (customId.startsWith("preview_block_")) { const blockName = customId.replace("preview_block_", ""); await interaction.reply({ content: `Vista previa de \`${blockName}\` - Funcionalidad en desarrollo`, - ephemeral: true + flags: 64 }); } else if (customId.startsWith("duplicate_block_")) { const blockName = customId.replace("duplicate_block_", ""); await interaction.reply({ content: `Funcionalidad de duplicación de \`${blockName}\` en desarrollo`, - ephemeral: true + flags: 64 }); } }