From 54b203ce11562c2a09eda87597483f5725abf2f4 Mon Sep 17 00:00:00 2001 From: shni Date: Sun, 5 Oct 2025 06:18:59 -0500 Subject: [PATCH] feat(economy): update imports and add message flags for enhanced component display --- src/commands/messages/admin/logroCrear.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/commands/messages/admin/logroCrear.ts b/src/commands/messages/admin/logroCrear.ts index 479c689..b232f16 100644 --- a/src/commands/messages/admin/logroCrear.ts +++ b/src/commands/messages/admin/logroCrear.ts @@ -1,9 +1,9 @@ -import type { CommandMessage } from '../../../core/types/commands'; +import type {CommandMessage} from '../../../core/types/commands'; import type Amayo from '../../../core/client'; -import { hasManageGuildOrStaff } from '../../../core/lib/permissions'; -import { prisma } from '../../../core/database/prisma'; -import { ComponentType, TextInputStyle, ButtonStyle } from 'discord-api-types/v10'; -import type { ButtonInteraction, MessageComponentInteraction, TextBasedChannel } from 'discord.js'; +import {hasManageGuildOrStaff} from '../../../core/lib/permissions'; +import {prisma} from '../../../core/database/prisma'; +import {ButtonStyle, ComponentType, MessageFlags, TextInputStyle} from 'discord-api-types/v10'; +import type {ButtonInteraction, MessageComponentInteraction, TextBasedChannel} from 'discord.js'; interface AchievementState { key: string; @@ -59,6 +59,7 @@ export const command: CommandMessage = { const channel = message.channel as TextBasedChannel & { send: Function }; const editorMsg = await channel.send({ ...displayMessage, + flags: MessageFlags.IsComponentsV2, components: [ { type: ComponentType.ActionRow,