From 6a0d0f41851f4ad33a2c4f7fd76e8a532455b4e6 Mon Sep 17 00:00:00 2001 From: MathMan05 <73901602+MathMan05@users.noreply.github.com> Date: Tue, 29 Oct 2024 17:42:52 -0500 Subject: [PATCH] Fix the broken delete API --- src/api/routes/channels/#channel_id/permissions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/channels/#channel_id/permissions.ts b/src/api/routes/channels/#channel_id/permissions.ts index fe289f234..40f6b8669 100644 --- a/src/api/routes/channels/#channel_id/permissions.ts +++ b/src/api/routes/channels/#channel_id/permissions.ts @@ -113,7 +113,7 @@ router.delete( if (!channel.guild_id) throw new HTTPError("Channel not found", 404); channel.permission_overwrites = channel.permission_overwrites?.filter( - (x) => x.id === overwrite_id, + (x) => x.id !== overwrite_id, ); await Promise.all([