From 432e237a7be64aed32a177db1618670c111b6942 Mon Sep 17 00:00:00 2001 From: metal Date: Fri, 10 Dec 2021 17:10:40 +0000 Subject: [PATCH] Update backend/src/plugins/Automod/actions/changePerms.ts Co-authored-by: Almeida --- backend/src/plugins/Automod/actions/changePerms.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Automod/actions/changePerms.ts b/backend/src/plugins/Automod/actions/changePerms.ts index 747a236b..b4087eb8 100644 --- a/backend/src/plugins/Automod/actions/changePerms.ts +++ b/backend/src/plugins/Automod/actions/changePerms.ts @@ -50,7 +50,7 @@ export const ChangePermsAction = automodAction({ if (!channel) return; const overwrite = channel.permissionOverwrites.cache.find((pw) => pw.id === target); const allow = new Permissions(overwrite?.allow ?? 0n).serialize(); - const deny = new Permissions(overwrite ? overwrite.deny : "0").serialize(); + const deny = new Permissions(overwrite?.deny ?? 0n).serialize(); const newPerms: Partial> = {}; for (const key in allow) {