1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-11 02:16:23 +00:00

Fix MemberCount

This commit is contained in:
Vendicated 2023-10-25 23:06:30 +02:00 committed by Luna
parent cbf5b746f5
commit 5dec872f5b

View file

@ -105,10 +105,10 @@ export default definePlugin({
authors: [Devs.Ven, Devs.Commandtechno], authors: [Devs.Ven, Devs.Commandtechno],
patches: [{ patches: [{
find: ".isSidebarVisible,", find: "{isSidebarVisible:",
replacement: { replacement: {
match: /(var (\i)=\i\.className.+?children):\[(\i\.useMemo[^}]+"aria-multiselectable")/, match: /(?<=let\{className:(\i),.+?children):\[(\i\.useMemo[^}]+"aria-multiselectable")/,
replace: "$1:[$2?.startsWith('members')?$self.render():null,$3" replace: ":[$1?.startsWith('members')?$self.render():null,$2"
} }
}], }],