From 6514111bc2ff99c33cd2b51d506c36e6a221b3bf Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Wed, 18 Mar 2026 00:16:13 -0500 Subject: [PATCH] remove the stupid function --- .../#interaction_id/#interaction_token/callback.ts | 7 +------ 1 file changed, 1 insertion(+), 6 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 6c7fc125f..b8b7d03ee 100644 --- a/src/api/routes/interactions/#interaction_id/#interaction_token/callback.ts +++ b/src/api/routes/interactions/#interaction_id/#interaction_token/callback.ts @@ -42,7 +42,7 @@ router.post( clearTimeout(interaction.timeout); - await emitEvent({ + await emitEvent({ event: "INTERACTION_SUCCESS", user_id: interaction?.userId, data: { @@ -159,7 +159,6 @@ router.post( if (body.data.content && body.data.content.length > Config.get().limits.message.maxCharacters) { throw new HTTPError("Content length over max character limit"); } - if (body.data.components) stripNull(body.data.components); message.embeds = body.data.embeds || []; const handle = body.data.components ? handleComps(body.data.components, message.flags) : undefined; await handle?.(message.id, message.author as User, message.channel); @@ -198,7 +197,3 @@ router.post( ); export default router; -function stripNull(components: BaseMessageComponents[]) { - throw new Error("Function not implemented."); -} -