feat(economy): update imports and add message flags for enhanced component display

This commit is contained in:
2025-10-05 06:18:59 -05:00
parent 21fd4d8176
commit 54b203ce11

View File

@@ -2,7 +2,7 @@ import type { CommandMessage } from '../../../core/types/commands';
import type Amayo from '../../../core/client'; import type Amayo from '../../../core/client';
import {hasManageGuildOrStaff} from '../../../core/lib/permissions'; import {hasManageGuildOrStaff} from '../../../core/lib/permissions';
import {prisma} from '../../../core/database/prisma'; import {prisma} from '../../../core/database/prisma';
import { ComponentType, TextInputStyle, ButtonStyle } from 'discord-api-types/v10'; import {ButtonStyle, ComponentType, MessageFlags, TextInputStyle} from 'discord-api-types/v10';
import type {ButtonInteraction, MessageComponentInteraction, TextBasedChannel} from 'discord.js'; import type {ButtonInteraction, MessageComponentInteraction, TextBasedChannel} from 'discord.js';
interface AchievementState { interface AchievementState {
@@ -59,6 +59,7 @@ export const command: CommandMessage = {
const channel = message.channel as TextBasedChannel & { send: Function }; const channel = message.channel as TextBasedChannel & { send: Function };
const editorMsg = await channel.send({ const editorMsg = await channel.send({
...displayMessage, ...displayMessage,
flags: MessageFlags.IsComponentsV2,
components: [ components: [
{ {
type: ComponentType.ActionRow, type: ComponentType.ActionRow,