Skip to content

Commit

Permalink
Multiple Badges for vencord uses
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfkid200444 committed May 15, 2023
1 parent 6316d7d commit fdc5820
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"discordID": "347096063569559553",
"github": "WolfPlugs"
},
"version": "1.2.8",
"version": "1.2.9",
"updater": {
"type": "github",
"id": "WolfPlugs/GlobalBadges"
Expand Down
20 changes: 10 additions & 10 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,12 @@ interface CustomBadges {
};
vencord: {
contributor: boolean;
cutie: {
tooltip: string;
image: string;
};
cutie: [
{
tooltip: string;
image: string;
}
];
};
}

Expand Down Expand Up @@ -249,12 +251,10 @@ function getBadgeselements(badges: CustomBadges, Badge: any, id: string) {
{ condition: badges.vencord?.contributor, element: <Badge.vencordContributor /> },
{
condition: badges.vencord?.cutie,
element: (
<Badge.vencordCutie
name={badges.vencord?.cutie?.tooltip}
url={badges.vencord?.cutie?.image}
/>
),
element:
badges.vencord?.cutie?.map((cutie) => (
<Badge.vencordCutie name={cutie.tooltip} url={cutie.image} />
)),
},
];

Expand Down

0 comments on commit fdc5820

Please sign in to comment.