|
|
|
@ -45,11 +45,11 @@ export default definePlugin({
|
|
|
|
|
patches: [{
|
|
|
|
|
find: ".getDesktopType()===",
|
|
|
|
|
replacement: [{
|
|
|
|
|
match: /if\((\i\.\i\.getDesktopType\(\)===\i\.\i\.NEVER)\){/,
|
|
|
|
|
replace: "if($1){if(!$self.isPrivateChannelRead(arguments[0]?.message))return;"
|
|
|
|
|
match: /(\i\.\i\.getDesktopType\(\)===\i\.\i\.NEVER)\)/,
|
|
|
|
|
replace: "$&if(!$self.isPrivateChannelRead(arguments[0]?.message))return;else "
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
match: /sound:(\i\?\i:void 0,volume:\i,onClick:)/,
|
|
|
|
|
match: /sound:(\i\?\i:void 0,volume:\i,onClick)/,
|
|
|
|
|
replace: "sound:!$self.isPrivateChannelRead(arguments[0]?.message)?undefined:$1"
|
|
|
|
|
}]
|
|
|
|
|
}],
|
|
|
|
|