mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 10:25:01 +00:00
Update backend/src/plugins/Automod/actions/changePerms.ts
Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
parent
236ba493fe
commit
ce03b75331
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ export const ChangePermsAction = automodAction({
|
|||
const channel = await pluginData.guild.channels.fetch(channelId);
|
||||
if (!channel) return;
|
||||
const overwrite = channel.permissionOverwrites.cache.find((pw) => pw.id === target);
|
||||
const allow = new Permissions(overwrite ? overwrite.allow : "0").serialize();
|
||||
const allow = new Permissions(overwrite?.allow ?? 0n).serialize();
|
||||
const deny = new Permissions(overwrite ? overwrite.deny : "0").serialize();
|
||||
const newPerms: Partial<Record<PermissionString, boolean | null>> = {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue