fix: interaction type check
This commit is contained in:
parent
a258632995
commit
8befb85f48
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user