mirror of
https://github.com/spacebarchat/server.git
synced 2026-12-01 03:18:04 +00:00
fix: add author to interaction message
This commit is contained in:
1 parent
a024d6343c
commit
97eef84e8c
1 file changed
+1
-1
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user