3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-25 02:25:01 +00:00
This commit is contained in:
Ibotmealot 2022-03-01 16:23:46 -05:00 committed by GitHub
parent e15deba68f
commit c2369f076c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();