fix: add author to interaction message

This commit is contained in:
CyberL1 2025-10-22 18:00:42 +02:00
parent a024d6343c
commit 97eef84e8c

View File

@ -91,7 +91,7 @@ router.post("/", route({}), async (req: Request, res: Response) => {
} }
if (body.type === InteractionType.MessageComponent || body.data.type === InteractionType.ModalSubmit) { 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({ emitEvent({