summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorCyberL1 <cyber.hf18@gmail.com>2025-10-19 21:38:55 +0200
committerRory& <root@rory.gay>2025-10-19 21:42:06 +0200
commit8befb85f4867ddfce2181313667f2fc099376806 (patch)
tree0007a4851051f2dad5b396632f94d185498e730f /src/api
parentchore: remove `is this right?` comments (diff)
downloadserver-ts-8befb85f4867ddfce2181313667f2fc099376806.tar.xz
fix: interaction type check
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/interactions/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/interactions/index.ts b/src/api/routes/interactions/index.ts

index 1255a571b..3423ed739 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; }