fix: interaction type check

This commit is contained in:
CyberL1 2025-10-19 21:38:55 +02:00 committed by Rory&
parent a258632995
commit 8befb85f48

View File

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