Migrate InteractionCreateEvent to satisfies, part of #1577

This commit is contained in:
Rory&
2026-03-08 16:24:54 +01:00
parent 366691b7e9
commit 0027218b6b

View File

@@ -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({