mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-26 21:45:20 +00:00
fix: interaction type check
This commit is contained in:
@@ -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