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; }