feat(economy): update imports and add message flags for enhanced component display
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user