diff options
author | V <vendicated@riseup.net> | 2023-05-23 01:55:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-23 01:55:39 +0200 |
commit | 184c03b28e6df72f301f91862dc8bdfb5f074fcb (patch) | |
tree | a543a4e3c932d172e76d86365b590265dfa1b0ff /src/plugins/apiBadges.tsx | |
parent | ec091a79591cf9619dd589102f5b338827b70ad8 (diff) | |
download | Vencord-184c03b28e6df72f301f91862dc8bdfb5f074fcb.tar.gz Vencord-184c03b28e6df72f301f91862dc8bdfb5f074fcb.tar.bz2 Vencord-184c03b28e6df72f301f91862dc8bdfb5f074fcb.zip |
PluginModal: Anonymise authors (#1176)
Diffstat (limited to 'src/plugins/apiBadges.tsx')
-rw-r--r-- | src/plugins/apiBadges.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/apiBadges.tsx b/src/plugins/apiBadges.tsx index 23ed6de..5f44d98 100644 --- a/src/plugins/apiBadges.tsx +++ b/src/plugins/apiBadges.tsx @@ -24,15 +24,13 @@ import { Heart } from "@components/Heart"; import { Devs } from "@utils/constants"; import { Logger } from "@utils/Logger"; import { Margins } from "@utils/margins"; +import { isPluginDev } from "@utils/misc"; import { closeModal, Modals, openModal } from "@utils/modal"; import definePlugin from "@utils/types"; import { Forms, Toasts } from "@webpack/common"; const CONTRIBUTOR_BADGE = "https://cdn.discordapp.com/attachments/1033680203433660458/1092089947126780035/favicon.png"; -/** List of vencord contributor IDs */ -const contributorIds: string[] = Object.values(Devs).map(d => d.id.toString()); - const ContributorBadge: ProfileBadge = { description: "Vencord Contributor", image: CONTRIBUTOR_BADGE, @@ -43,7 +41,7 @@ const ContributorBadge: ProfileBadge = { transform: "scale(0.9)" // The image is a bit too big compared to default badges } }, - shouldShow: ({ user }) => contributorIds.includes(user.id), + shouldShow: ({ user }) => isPluginDev(user.id), link: "https://github.com/Vendicated/Vencord" }; |