summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorCyberL1 <cyber.hf18@gmail.com>2025-10-22 18:00:42 +0200
committerCyberL1 <cyber.hf18@gmail.com>2025-10-22 18:00:42 +0200
commit97eef84e8cd9dde2bdb8e04525e46afc04d8e26c (patch)
tree3fb8e7a37064e39cc5c5138acbe76a286979af2e /src/api
parentfix: add `BulkApplicationCommandCreateSchema` (diff)
downloadserver-ts-97eef84e8cd9dde2bdb8e04525e46afc04d8e26c.tar.xz
fix: add `author` to interaction message
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 3423ed739..6c192c692 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({