summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/interactions/index.ts2
1 files changed, 1 insertions, 1 deletions
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({