Fix the broken delete API

This commit is contained in:
MathMan05 2024-10-29 17:42:52 -05:00 committed by GitHub
parent 12adca64b4
commit 6a0d0f4185
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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([