aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/_api
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-07-02 01:17:02 +0200
committerV <vendicated@riseup.net>2023-07-02 01:17:02 +0200
commit1cbf2b43e18828b89bd7c864e8be1f07807597bf (patch)
tree3e2da0b447b6cf7692ff9c590f979e13c26f42ee /src/plugins/_api
parent4c197d5d51d88fb059d500caa5651c94d9f754cd (diff)
downloadVencord-1cbf2b43e18828b89bd7c864e8be1f07807597bf.tar.gz
Vencord-1cbf2b43e18828b89bd7c864e8be1f07807597bf.tar.bz2
Vencord-1cbf2b43e18828b89bd7c864e8be1f07807597bf.zip
Fix Badges
Diffstat (limited to 'src/plugins/_api')
-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