diff --git a/src/api/routes/interactions/#interaction_id/#interaction_token/callback.ts b/src/api/routes/interactions/#interaction_id/#interaction_token/callback.ts index 9260e28ab..442ce0ef6 100644 --- a/src/api/routes/interactions/#interaction_id/#interaction_token/callback.ts +++ b/src/api/routes/interactions/#interaction_id/#interaction_token/callback.ts @@ -97,8 +97,8 @@ router.post("/", route({}), async (req: Request, res: Response) => { // TODO break; case InteractionCallbackType.CHANNEL_MESSAGE_WITH_SOURCE: { - /* const user = await User.findOneOrFail({ where: { id: interaction.userId } }); + /* const files = (req.files as Express.Multer.File[]) ?? []; //I don't think traditional attachments are allowed anyways const attachments: (Attachment | MessageCreateAttachment | MessageCreateCloudAttachment)[] = []; @@ -122,7 +122,7 @@ router.post("/", route({}), async (req: Request, res: Response) => { components: body.data.components || [], tts: body.data.tts, embeds: body.data.embeds || [], - attachments, + attachments: body.data.attachments, poll: body.data.poll, flags: body.data.flags, reactions: [],