diff --git a/index.ts b/index.ts index 1f7ab8b..dc9fac0 100644 --- a/index.ts +++ b/index.ts @@ -50,56 +50,56 @@ export default definePlugin({ description: "Discord Staff", image: "https://cdn.discordapp.com/badge-icons/5e74e9b61934fc1f67c65515d1f7e60d.png", position: Badges.BadgePosition.END, - shouldShow: ({ userId }) => isCurrentUser(userId), + shouldShow: ({ userId }) => isCurrentUser(userId) && this.settings.store.discordStaff, link: "https://discord.com/company" }, { description: "Partnered Server Owner", image: "https://cdn.discordapp.com/badge-icons/3f9748e53446a137a052f3454e2de41e.png", position: Badges.BadgePosition.END, - shouldShow: ({ userId }) => isCurrentUser(userId), + shouldShow: ({ userId }) => isCurrentUser(userId) && this.settings.store.partneredServerOwner, link: "https://discord.com/partners" }, { description: "Early Supporter", image: "https://cdn.discordapp.com/badge-icons/7060786766c9c840eb3019e725d2b358.png", position: Badges.BadgePosition.END, - shouldShow: ({ userId }) => isCurrentUser(userId), + shouldShow: ({ userId }) => isCurrentUser(userId) && this.settings.store.earlySupporter, link: "https://discord.com/settings/premium" }, { description: "Active Developer", image: "https://cdn.discordapp.com/badge-icons/6bdc42827a38498929a4920da12695d9.png", position: Badges.BadgePosition.END, - shouldShow: ({ userId }) => isCurrentUser(userId), + shouldShow: ({ userId }) => isCurrentUser(userId) && this.settings.store.activeDeveloper, link: "https://support-dev.discord.com/hc/en-us/articles/10113997751447" }, { description: "Early Verified Bot Developer", image: "https://cdn.discordapp.com/badge-icons/6df5892e0f35b051f8b61eace34f4967.png", position: Badges.BadgePosition.END, - shouldShow: ({ userId }) => isCurrentUser(userId), + shouldShow: ({ userId }) => isCurrentUser(userId) && this.settings.store.earlyVerifiedBotDeveloper, link: "https://discord.com/settings/premium" }, { description: "Moderator Programs Alumni", image: "https://cdn.discordapp.com/badge-icons/fee1624003e2fee35cb398e125dc479b.png", position: Badges.BadgePosition.END, - shouldShow: ({ userId }) => isCurrentUser(userId), + shouldShow: ({ userId }) => isCurrentUser(userId) && this.settings.store.moderatorProgramsAlumni, link: "https://discord.com/settings/premium" }, { description: "Discord Bug Hunter", image: "https://cdn.discordapp.com/badge-icons/2717692c7dca7289b35297368a940dd0.png", position: Badges.BadgePosition.END, - shouldShow: ({ userId }) => isCurrentUser(userId), + shouldShow: ({ userId }) => isCurrentUser(userId) && this.settings.store.bugHunter, link: "https://discord.com/settings/premium" }, { description: "Discord Bug Hunter", image: "https://cdn.discordapp.com/badge-icons/848f79194d4be5ff5f81505cbd0ce1e6.png", position: Badges.BadgePosition.END, - shouldShow: ({ userId }) => isCurrentUser(userId), + shouldShow: ({ userId }) => isCurrentUser(userId) && this.settings.store.goldenBugHunter, link: "https://discord.com/settings/premium" } ];