mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-31 00:45:41 +00:00
fix: add author to interaction message
This commit is contained in:
@@ -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