From 97eef84e8cd9dde2bdb8e04525e46afc04d8e26c Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Wed, 22 Oct 2025 18:00:42 +0200 Subject: [PATCH] fix: add `author` to interaction message --- src/api/routes/interactions/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/interactions/index.ts b/src/api/routes/interactions/index.ts index 3423ed73..6c192c69 100644 --- a/src/api/routes/interactions/index.ts +++ b/src/api/routes/interactions/index.ts @@ -91,7 +91,7 @@ router.post("/", route({}), async (req: Request, res: Response) => { } if (body.type === InteractionType.MessageComponent || body.data.type === InteractionType.ModalSubmit) { - interactionData.message = await Message.findOneOrFail({ where: { id: body.message_id } }); + interactionData.message = await Message.findOneOrFail({ where: { id: body.message_id }, relations: ["author"] }); } emitEvent({