SHC: Fix Patch
This commit is contained in:
parent
97fb208005
commit
bced15ffb1
1 changed files with 2 additions and 2 deletions
|
|
@ -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;${_}`
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue