From 1cbf2b43e18828b89bd7c864e8be1f07807597bf Mon Sep 17 00:00:00 2001 From: V Date: Sun, 2 Jul 2023 01:17:02 +0200 Subject: Fix Badges --- src/plugins/_api/badges.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit