mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 02:25:01 +00:00
fix
This commit is contained in:
parent
c38ef6f0a0
commit
c837017fb6
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ export const ChangePermsAction = automodAction({
|
||||||
|
|
||||||
if (channelId && isValidSnowflake(channelId)) {
|
if (channelId && isValidSnowflake(channelId)) {
|
||||||
const channel = pluginData.guild.channels.resolve(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 overwrite = channel.permissionOverwrites.cache.find((pw) => pw.id === target);
|
||||||
const allow = new Permissions(overwrite?.allow ?? 0n).serialize();
|
const allow = new Permissions(overwrite?.allow ?? 0n).serialize();
|
||||||
const deny = new Permissions(overwrite?.deny ?? 0n).serialize();
|
const deny = new Permissions(overwrite?.deny ?? 0n).serialize();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue