fix: interaction type check

This commit is contained in:
CyberL1 authored and Rory& committed 2025-10-19 21:42:06 +02:00
1 parent a258632995
commit 8befb85f48
1 file changed
+1 -1
+1 -1
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;
}