mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-30 13:55:39 +00:00
Migrate InteractionCreateEvent to satisfies, part of #1577
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user