fix: pass the command type to pending interactions map

This commit is contained in:
CyberL1 authored and Rory& committed 2025-10-18 15:54:11 +02:00
1 parent 38ab40c637
commit 2480aa2d94
2 files changed
+5 -3

No files matched your search

+2 -1
View File
@@ -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,
});