add Vencord badges to user settings section (#3667)

Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
thororen 2025-09-21 23:15:14 -04:00 committed by GitHub
parent edd68fe08e
commit 2e9d67f0b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -111,6 +111,13 @@ export default definePlugin({
replace: "...$self.getBadgeMouseEventHandlers($1),$&"
}
]
},
{
find: "profileCardUsernameRow,children:",
replacement: {
match: /badges:(\i)(?<=displayProfile:(\i).+?)/,
replace: "badges:[...$self.getBadges($2),...$1]"
}
}
],