SHC: Fix Patch

This commit is contained in:
thororen1234 2026-04-28 09:26:03 -04:00
parent 97fb208005
commit bced15ffb1
No known key found for this signature in database

View file

@ -169,8 +169,8 @@ export default definePlugin({
predicate: () => settings.store.showMode === ShowMode.LockIcon,
replacement: {
// Lock Icon
match: /(?=switch\((\i)\.type\).{0,30}\.GUILD_ANNOUNCEMENT.{0,70}\(0,\i\.\i\))/,
replace: (_, channel) => `if($self.isHiddenChannel(${channel}))return $self.LockIcon;`
match: /(?<=(\i)\.isNSFW\(\);)switch\(\i\.type\)/,
replace: (_, channel) => `if($self.isHiddenChannel(${channel}))return $self.LockIcon;${_}`
}
},
{