regex find

This commit is contained in:
thororen1234 2024-07-25 01:58:41 -04:00
parent 526133e43d
commit 8e1140f26d

View file

@ -45,7 +45,7 @@ export default definePlugin({
authors: [Devs.Samwich],
patches: [
{
find: "l.Z.STICKER_MESSAGE",
find: /\i\.\i\.STICKER_MESSAGE/,
replacement: {
match: /}\),\(null!=\i\?\i:(\i)\)\.name]}\);/,
replace: "$& if(Vencord.Settings.plugins.StickerBlocker.blockedStickers.split(\", \").includes($1.id)) { return($self.blockedComponent($1)) }"