From 383971903d833c019d11d25d4578fe0b8db9e72f Mon Sep 17 00:00:00 2001 From: shnimlz Date: Sat, 20 Sep 2025 03:25:28 -0500 Subject: [PATCH] a --- src/commands/messages/alliaces/removeChannel.ts | 3 +-- src/commands/messages/alliaces/setupChannel.ts | 7 +++---- src/commands/messages/help.ts | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/commands/messages/alliaces/removeChannel.ts b/src/commands/messages/alliaces/removeChannel.ts index a3e9bc5..7234859 100644 --- a/src/commands/messages/alliaces/removeChannel.ts +++ b/src/commands/messages/alliaces/removeChannel.ts @@ -15,8 +15,7 @@ export const command: CommandMessage = { // Obtener canales configurados existentes const existingChannels = await client.prisma.allianceChannel.findMany({ - where: { guildId: message.guildId! }, - include: { blockConfig: true } + where: { guildId: message.guildId! } }); if (existingChannels.length === 0) { diff --git a/src/commands/messages/alliaces/setupChannel.ts b/src/commands/messages/alliaces/setupChannel.ts index 349129d..fb95673 100644 --- a/src/commands/messages/alliaces/setupChannel.ts +++ b/src/commands/messages/alliaces/setupChannel.ts @@ -3,7 +3,7 @@ import { CommandMessage } from "../../../core/types/commands"; import { ComponentType, ButtonStyle, MessageFlags, ChannelType } from "discord.js"; export const command: CommandMessage = { - name: "setchannel-alliance", + name: "canal-alianza", type: "message", aliases: ["alchannel", "channelally"], cooldown: 10, @@ -13,10 +13,9 @@ export const command: CommandMessage = { return message.reply("❌ No tienes permisos de Administrador."); } - // Obtener canales configurados existentes y bloques disponibles + // Obtener canales configurados existentes const existingChannels = await client.prisma.allianceChannel.findMany({ - where: { guildId: message.guildId! }, - include: { blockConfig: true } + where: { guildId: message.guildId! } }); const availableBlocks = await client.prisma.blockV2Config.findMany({ diff --git a/src/commands/messages/help.ts b/src/commands/messages/help.ts index d88f2a5..9fc0c9d 100644 --- a/src/commands/messages/help.ts +++ b/src/commands/messages/help.ts @@ -44,7 +44,7 @@ export const command: CommandMessage = { name: "canal-alianza", aliases: ["configurar-canal", "setup-canal"], description: "Configurar canales para sistema de alianzas", - usage: `${prefix}canal-alianza` + usage: `${prefix}canal-alianza {canal}` }, { name: "eliminar-canal-alianza",