Migrate Interaction*Event to satisfies, part of #1577

This commit is contained in:
Rory&
2026-03-08 16:27:45 +01:00
parent 0027218b6b
commit 7a791cdea8
2 changed files with 3 additions and 3 deletions

View File

@@ -47,9 +47,9 @@ router.post(
user_id: interaction?.userId,
data: {
id: interactionId,
nonce: interaction?.nonce,
nonce: interaction.nonce ?? "", // TODO: did i do this right?
},
} as InteractionSuccessEvent);
} satisfies InteractionSuccessEvent);
switch (body.type) {
case InteractionCallbackType.PONG:

View File

@@ -130,7 +130,7 @@ router.post("/", route({}), async (req: Request, res: Response) => {
nonce: body.nonce,
reason_code: InteractionFailureReason.TIMEOUT,
},
} as InteractionFailureEvent);
} satisfies InteractionFailureEvent);
}, 3000);
pendingInteractions.set(interactionId, {