diff --git a/package.json b/package.json index 2ebf3fe..6eb2af3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "amayo", - "version": "0.10.200", + "version": "0.10.210", "description": "", "main": "src/main.ts", "scripts": { diff --git a/src/commands/messages/alliaces/displayComponentsDemo.ts b/src/commands/messages/alliaces/displayComponentsDemo.ts index f903109..e63bdff 100644 --- a/src/commands/messages/alliaces/displayComponentsDemo.ts +++ b/src/commands/messages/alliaces/displayComponentsDemo.ts @@ -116,7 +116,8 @@ export const command: CommandMessage = { }; const demoMessage = await message.reply({ - flags: 4096, // SuppressEmbeds + // Activar Display Components V2 y mantener SuppressEmbeds + flags: (32768 | 4096), components: [mainPanel, actionRow] }); diff --git a/src/commands/messages/alliaces/setupChannel.ts b/src/commands/messages/alliaces/setupChannel.ts index df50886..6c410e9 100644 --- a/src/commands/messages/alliaces/setupChannel.ts +++ b/src/commands/messages/alliaces/setupChannel.ts @@ -295,7 +295,17 @@ export const command: CommandMessage = { await interaction.update({ // @ts-ignore - components: [blockSelectPanel, blockSelectRow, backRow] + components: [blockSelectPanel, blockSelectRow, { + type: 1, + components: [ + { + type: 2, + style: ButtonStyle.Secondary, + label: "↩️ Volver al Inicio", + custom_id: "back_to_main" + } + ] + }] }); } break; @@ -528,8 +538,7 @@ export const command: CommandMessage = { case "refresh_status": // Recargar datos y volver al panel principal const refreshedChannels = await client.prisma.allianceChannel.findMany({ - where: { guildId: message.guildId! }, - include: { blockConfig: true } + where: { guildId: message.guildId! } }); const refreshedBlocks = await client.prisma.blockV2Config.findMany({