summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-03-08 16:24:54 +0100
committerRory& <root@rory.gay>2026-03-20 18:13:15 +0100
commit0027218b6b95d522793bd0e28b613ca2c333ac79 (patch)
tree4d4bca2efedf34dbab8951f6489491e366f65b00 /src
parentMigrate SettingsProto* to satisfies, part of #1577 (diff)
downloadserver-ts-0027218b6b95d522793bd0e28b613ca2c333ac79.tar.xz
Migrate InteractionCreateEvent to satisfies, part of #1577
Diffstat (limited to 'src')
-rw-r--r--src/api/routes/interactions/index.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/api/routes/interactions/index.ts b/src/api/routes/interactions/index.ts

index fc853184..8a793efd 100644 --- a/src/api/routes/interactions/index.ts +++ b/src/api/routes/interactions/index.ts
@@ -114,8 +114,12 @@ router.post("/", route({}), async (req: Request, res: Response) => { await emitEvent({ event: "INTERACTION_CREATE", user_id: body.application_id, - data: interactionData, - } as InteractionCreateEvent); + data: { + ...interactionData, + member_id: req.user_id, // TODO: is this correct? + id: interactionId, // TODO: is this correct? + }, + } satisfies InteractionCreateEvent); const interactionTimeout = setTimeout(() => { emitEvent({