aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/_api/badges.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/_api/badges.tsx b/src/plugins/_api/badges.tsx
index 5f44d98..d10d002 100644
--- a/src/plugins/_api/badges.tsx
+++ b/src/plugins/_api/badges.tsx
@@ -80,8 +80,8 @@ export default definePlugin({
find: "Messages.PROFILE_USER_BADGES,role:",
replacement: [
{
- match: /(?<=(\i)\.isTryItOutFlow,)(.{0,300})null==\i\?void 0:(\i)\.getBadges\(\)/,
- replace: (_, props, restCode, badgesMod) => `vencordProps=${props},${restCode}Vencord.Api.Badges._getBadges(vencordProps).concat(${badgesMod}?.getBadges()??[])`,
+ match: /&&(\i)\.push\(\{id:"premium".+?\}\);/,
+ replace: "$&$1.unshift(...Vencord.Api.Badges._getBadges(arguments[0]));",
},
{
// alt: "", aria-hidden: false, src: originalSrc