From 8befb85f4867ddfce2181313667f2fc099376806 Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Sun, 19 Oct 2025 21:38:55 +0200 Subject: [PATCH] fix: interaction type check --- src/api/routes/interactions/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/interactions/index.ts b/src/api/routes/interactions/index.ts index 1255a571..3423ed73 100644 --- a/src/api/routes/interactions/index.ts +++ b/src/api/routes/interactions/index.ts @@ -55,7 +55,7 @@ router.post("/", route({}), async (req: Request, res: Response) => { attachment_size_limit: Config.get().cdn.maxAttachmentSize, }; - if (body.type === InteractionType.ApplicationCommand || body.data.type === InteractionType.MessageComponent || body.data.type === InteractionType.ModalSubmit) { + if (body.type === InteractionType.ApplicationCommand || body.type === InteractionType.MessageComponent || body.type === InteractionType.ModalSubmit) { interactionData.data = body.data; }