summary refs log tree commit diff
path: root/src/schemas/uncategorised/MessageCreateSchema.ts
diff options
context:
space:
mode:
authorMathMan05 <mathmanrm@gmail.com>2026-02-13 12:30:56 -0600
committerRory& <root@rory.gay>2026-03-20 16:31:32 +0100
commita4ff9e9d41f05e7af3d7eb2debc186f6e1ad959e (patch)
tree6111a3301588b3d0918bad3f0dfa10a9504831c9 /src/schemas/uncategorised/MessageCreateSchema.ts
parentmove the check to the right spot (diff)
downloadserver-ts-a4ff9e9d41f05e7af3d7eb2debc186f6e1ad959e.tar.xz
switch messages to base message type
Diffstat (limited to 'src/schemas/uncategorised/MessageCreateSchema.ts')
-rw-r--r--src/schemas/uncategorised/MessageCreateSchema.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/schemas/uncategorised/MessageCreateSchema.ts b/src/schemas/uncategorised/MessageCreateSchema.ts

index f1313291..ae506ecc 100644 --- a/src/schemas/uncategorised/MessageCreateSchema.ts +++ b/src/schemas/uncategorised/MessageCreateSchema.ts
@@ -17,7 +17,7 @@ */ import { InteractionType, Snowflake } from "@spacebar/util"; -import { ActionRowComponent, ApplicationCommandType, Embed, PollAnswer, PollMedia, PublicUser } from "@spacebar/schemas"; +import { ApplicationCommandType, BaseMessageComponents, Embed, PollAnswer, PollMedia, PublicUser } from "@spacebar/schemas"; export type MessageCreateAttachment = { id: string; @@ -60,7 +60,7 @@ export interface MessageCreateSchema { // TODO: we should create an interface for attachments attachments?: (MessageCreateAttachment | MessageCreateCloudAttachment)[]; sticker_ids?: string[] | null; // null check: fixes Discord-Go - components?: ActionRowComponent[] | null; // null check: fixes Discord-Go + components?: BaseMessageComponents[] | null; // null check: fixes Discord-Go // TODO: Fix TypeScript errors in src\api\util\handlers\Message.ts once this is enabled poll?: PollCreationSchema; enforce_nonce?: boolean; // For Discord compatibility, it's the default behavior here