summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorMathMan05 <mathmanrm@gmail.com>2025-11-20 17:18:30 -0600
committerRory& <root@rory.gay>2025-11-20 17:18:30 -0600
commit4a4e13e462b10665879d4e8ac8db54375af47d7c (patch)
tree9323ad1ff5b58088ba4159449d15d36b5a5046f8 /src/api
parentno, that doesn't work (diff)
downloadserver-ts-4a4e13e462b10665879d4e8ac8db54375af47d7c.tar.xz
fix for the comemnting
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/interactions/#interaction_id/#interaction_token/callback.ts4
1 files changed, 2 insertions, 2 deletions
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: [],