Patches
Some checks failed
Test / Test (push) Has been cancelled

This commit is contained in:
thororen1234 2025-04-21 23:30:40 -04:00
parent a068fb8e8a
commit 186e7b5595
No known key found for this signature in database
9 changed files with 51 additions and 36 deletions

View file

@ -36,9 +36,13 @@ export default definePlugin({
match: /let\{[^}]*lostPermissionTooltipText:\i[^}]*\}=(\i),/,
replace: "$&vencordProps=$1,"
},
{
match: /decorators:.{0,100}?(?=user:)/,
replace: "$&vencordProps:typeof vencordProps!=='undefined'?vencordProps:void 0,"
},
{
match: /children:\[(?=.{0,300},lostPermissionTooltipText:)/,
replace: "children:[(typeof vencordProps!=='undefined'&&Vencord.Api.MemberListDecorators.__getDecorators(vencordProps)),"
replace: "children:[(arguments[0]?.vencordProps&&Vencord.Api.MemberListDecorators.__getDecorators(arguments[0].vencordProps)),"
}
]
},