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