Skip to content

Commit

Permalink
Fix the broken delete API
Browse files Browse the repository at this point in the history
  • Loading branch information
MathMan05 authored Oct 29, 2024
1 parent 12adca6 commit 6a0d0f4
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 6a0d0f4

Please sign in to comment.