fix: add author to interaction message
This commit is contained in:
parent
a024d6343c
commit
97eef84e8c
@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user