summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorMathMan05 <mathmanrm@gmail.com>2025-11-20 17:18:00 -0600
committerRory& <root@rory.gay>2025-11-23 00:57:31 +0100
commit5579fcbd0f39edcd178f3b358cd5c04c5485ab70 (patch)
tree061a2da98404c72dfddd2a7b84c18c3e8bb278be /src/api
parentmaybe fix attachments? (diff)
downloadserver-ts-5579fcbd0f39edcd178f3b358cd5c04c5485ab70.tar.xz
no, that doesn't work
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/interactions/#interaction_id/#interaction_token/callback.ts2
1 files changed, 2 insertions, 0 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 1eee0360..9260e28a 100644 --- a/src/api/routes/interactions/#interaction_id/#interaction_token/callback.ts +++ b/src/api/routes/interactions/#interaction_id/#interaction_token/callback.ts
@@ -97,6 +97,7 @@ 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 @@ -109,6 +110,7 @@ router.post("/", route({}), async (req: Request, res: Response) => { return res.status(400).json({ message: error?.toString() }); } } + */ await sendMessage({ type: MessageType.APPLICATION_COMMAND, timestamp: new Date(),