MemberListDecoratorAPI: Fix
This commit is contained in:
parent
7e0fc1d0ea
commit
9895540943
1 changed files with 11 additions and 6 deletions
|
@ -25,18 +25,23 @@ export default definePlugin({
|
|||
authors: [Devs.TheSun, Devs.Ven],
|
||||
patches: [
|
||||
{
|
||||
find: "lostPermissionTooltipText,",
|
||||
replacement: {
|
||||
match: /decorators:.{0,100}?children:\[(?<=(\i)\.lostPermissionTooltipText.+?)/,
|
||||
replace: "$&...Vencord.Api.MemberListDecorators.__getDecorators($1),"
|
||||
}
|
||||
find: ".lostPermission)",
|
||||
replacement: [
|
||||
{
|
||||
match: /let\{[^}]*lostPermissionTooltipText:\i[^}]*\}=(\i),/,
|
||||
replace: "$&vencordProps=$1,"
|
||||
}, {
|
||||
match: /decorators:.{0,100}?children:\[/,
|
||||
replace: "$&...(typeof vencordProps=='undefined'?[]:Vencord.Api.MemberListDecorators.__getDecorators(vencordProps)),"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
find: "PrivateChannel.renderAvatar",
|
||||
replacement: [
|
||||
// props are shadowed by nested props so we have to do this
|
||||
{
|
||||
match: /\i=(\i)\.applicationStream,/,
|
||||
match: /let\{[^}]*applicationStream:\i[^}]*\}=(\i),/,
|
||||
replace: "$&vencordProps=$1,"
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue