From 62016a80431344cffbf39be2d006e2733e8ba3ae Mon Sep 17 00:00:00 2001 From: Rory& Date: Mon, 6 Oct 2025 03:25:11 +0200 Subject: Try to fix sending messages with discord-go --- src/util/schemas/MessageCreateSchema.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util') diff --git a/src/util/schemas/MessageCreateSchema.ts b/src/util/schemas/MessageCreateSchema.ts index 7e590467..f5037d66 100644 --- a/src/util/schemas/MessageCreateSchema.ts +++ b/src/util/schemas/MessageCreateSchema.ts @@ -60,8 +60,8 @@ export interface MessageCreateSchema { TODO: OpenWAAO<-->attachment-style metadata conversion **/ attachments?: (MessageCreateAttachment | MessageCreateCloudAttachment)[]; - sticker_ids?: string[]; - components?: ActionRowComponent[]; + sticker_ids?: string[] | null; // null check: fixes Discord-Go + components?: ActionRowComponent[] | 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 -- cgit 1.5.1