mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-29 05:29:53 +00:00
Migrate Interaction*Event to satisfies, part of #1577
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user