summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorCyberL1 <cyber.hf18@gmail.com>2025-10-18 14:13:17 +0200
committerRory& <root@rory.gay>2025-10-18 15:54:11 +0200
commit2480aa2d947555e03538a8671fc1269c2f5d5b66 (patch)
tree568109e03c4e8fa07e37467aaa8c3a2685874944 /src/api
parentfix: interaction schema (diff)
downloadserver-ts-2480aa2d947555e03538a8671fc1269c2f5d5b66.tar.xz
fix: pass the command type to pending interactions map
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/interactions/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/routes/interactions/index.ts b/src/api/routes/interactions/index.ts

index 815d2b86..8789b291 100644 --- a/src/api/routes/interactions/index.ts +++ b/src/api/routes/interactions/index.ts
@@ -20,7 +20,7 @@ import { randomBytes } from "crypto"; import { InteractionSchema } from "@spacebar/schemas"; import { route } from "@spacebar/api"; import { Request, Response, Router } from "express"; -import { Application, ApplicationCommand, emitEvent, InteractionCreateEvent, InteractionFailureEvent, Snowflake } from "@spacebar/util"; +import { emitEvent, InteractionCreateEvent, InteractionFailureEvent, Snowflake } from "@spacebar/util"; import { pendingInteractions } from "../../../util/imports/Interactions"; const router = Router({ mergeParams: true }); @@ -73,6 +73,7 @@ router.post("/", route({}), async (req: Request, res: Response) => { guildId: body.guild_id, channelId: body.channel_id, type: body.type, + commandType: body.data.type, commandName: body.data.name, });