3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-25 18:25:03 +00:00
This commit is contained in:
almeidx 2022-03-01 21:22:03 +00:00
parent c38ef6f0a0
commit c837017fb6
No known key found for this signature in database
GPG key ID: D3B8D0FDD91CDA0E

View file

@ -47,7 +47,7 @@ export const ChangePermsAction = automodAction({
if (channelId && isValidSnowflake(channelId)) {
const channel = pluginData.guild.channels.resolve(channelId);
if (!channel) return;
if (!channel || channel.isThread()) return;
const overwrite = channel.permissionOverwrites.cache.find((pw) => pw.id === target);
const allow = new Permissions(overwrite?.allow ?? 0n).serialize();
const deny = new Permissions(overwrite?.deny ?? 0n).serialize();