Skip to content

Commit

Permalink
Merge pull request #1227 from MathMan05/patch-3
Browse files Browse the repository at this point in the history
Fix the broken delete API
  • Loading branch information
MaddyUnderStars authored Oct 29, 2024
2 parents 12adca6 + 6a0d0f4 commit 3e95e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/routes/channels/#channel_id/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit 3e95e4f

Please sign in to comment.