mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-23 05:17:02 -04:00
parent
48d4f3ad0d
commit
6b78ddb9f1
6 changed files with 18 additions and 73 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { addDecoration, removeDecoration } from "@api/MessageDecorations";
|
||||
import { Devs, EquicordDevs } from "@utils/constants";
|
||||
import { isEquicordPluginDev, isEquicordTeamDev, isPluginDev, isSuncordPluginDev } from "@utils/misc";
|
||||
import { isEquicordPluginDev, isPluginDev, isSuncordPluginDev } from "@utils/misc";
|
||||
import definePlugin from "@utils/types";
|
||||
import { findByPropsLazy, findComponentByCodeLazy } from "@webpack";
|
||||
import badges from "plugins/_api/badges";
|
||||
|
@ -60,17 +60,6 @@ function CheckBadge({ badge, author }: { badge: string; author: User; }): JSX.El
|
|||
/>
|
||||
</span>
|
||||
) : null;
|
||||
case "EquicordTeam":
|
||||
return isEquicordTeamDev(author.id) ? (
|
||||
<span style={{ order: settings.store.EquicordTeamPosition }}>
|
||||
<RoleIconComponent
|
||||
className={roleIconClassName}
|
||||
name="Equicord Team"
|
||||
size={20}
|
||||
src={"https://i.imgur.com/2ydSGVq.png"}
|
||||
/>
|
||||
</span>
|
||||
) : null;
|
||||
case "SuncordDonor":
|
||||
return (
|
||||
<span style={{ order: settings.store.SuncordDonorPosition }}>
|
||||
|
|
|
@ -23,7 +23,7 @@ const settings = definePluginSettings({
|
|||
},
|
||||
showEquicordContributor: {
|
||||
type: OptionType.BOOLEAN,
|
||||
description: "Enable to show Equicord Contributor badge in chat.",
|
||||
description: "Enable to show Equicord Contributor badges in chat.",
|
||||
hidden: true,
|
||||
default: true
|
||||
},
|
||||
|
@ -33,18 +33,6 @@ const settings = definePluginSettings({
|
|||
hidden: true,
|
||||
default: 1
|
||||
},
|
||||
showEquicordTeam: {
|
||||
type: OptionType.BOOLEAN,
|
||||
description: "Enable to show Equicord Team badge in chat.",
|
||||
hidden: true,
|
||||
default: true
|
||||
},
|
||||
EquicordTeamPosition: {
|
||||
type: OptionType.NUMBER,
|
||||
description: "The position of the Equicord Team badge.",
|
||||
hidden: true,
|
||||
default: 2
|
||||
},
|
||||
showSuncordDonor: {
|
||||
type: OptionType.BOOLEAN,
|
||||
description: "Enable to show Suncord Donor badges in chat.",
|
||||
|
@ -55,11 +43,11 @@ const settings = definePluginSettings({
|
|||
type: OptionType.NUMBER,
|
||||
description: "The position of the Suncord Donor badges.",
|
||||
hidden: true,
|
||||
default: 3
|
||||
default: 2
|
||||
},
|
||||
showSuncordContributor: {
|
||||
type: OptionType.BOOLEAN,
|
||||
description: "Enable to show Suncord Contributor badge in chat.",
|
||||
description: "Enable to show Suncord Contributor badges in chat.",
|
||||
hidden: true,
|
||||
default: true
|
||||
},
|
||||
|
@ -67,7 +55,7 @@ const settings = definePluginSettings({
|
|||
type: OptionType.NUMBER,
|
||||
description: "The position of the Suncord Contributor badge.",
|
||||
hidden: true,
|
||||
default: 4
|
||||
default: 3
|
||||
},
|
||||
showVencordDonor: {
|
||||
type: OptionType.BOOLEAN,
|
||||
|
@ -79,11 +67,11 @@ const settings = definePluginSettings({
|
|||
type: OptionType.NUMBER,
|
||||
description: "The position of the Vencord Donor badges.",
|
||||
hidden: true,
|
||||
default: 5
|
||||
default: 4
|
||||
},
|
||||
showVencordContributor: {
|
||||
type: OptionType.BOOLEAN,
|
||||
description: "Enable to show Vencord contributor badge in chat.",
|
||||
description: "Enable to show Vencord contributor badges in chat.",
|
||||
hidden: true,
|
||||
default: true
|
||||
},
|
||||
|
@ -91,7 +79,7 @@ const settings = definePluginSettings({
|
|||
type: OptionType.NUMBER,
|
||||
description: "The position of the Vencord Contributor badge.",
|
||||
hidden: true,
|
||||
default: 6
|
||||
default: 5
|
||||
},
|
||||
showDiscordProfile: {
|
||||
type: OptionType.BOOLEAN,
|
||||
|
@ -103,7 +91,7 @@ const settings = definePluginSettings({
|
|||
type: OptionType.NUMBER,
|
||||
description: "The position of the Discord profile badges.",
|
||||
hidden: true,
|
||||
default: 7
|
||||
default: 6
|
||||
},
|
||||
showDiscordNitro: {
|
||||
type: OptionType.BOOLEAN,
|
||||
|
@ -115,7 +103,7 @@ const settings = definePluginSettings({
|
|||
type: OptionType.NUMBER,
|
||||
description: "The position of the Discord Nitro badge.",
|
||||
hidden: true,
|
||||
default: 8
|
||||
default: 7
|
||||
},
|
||||
badgeSettings: {
|
||||
type: OptionType.COMPONENT,
|
||||
|
@ -130,7 +118,6 @@ const BadgeSettings = () => {
|
|||
const [images, setImages] = useState([
|
||||
{ src: "https://i.imgur.com/KsxHlbD.png", shown: settings.store.showEquicordDonor, title: "Equicord donor badges", key: "EquicordDonor", position: settings.store.EquicordDonorPosition },
|
||||
{ src: "https://i.imgur.com/rJDRtUB.png", shown: settings.store.showEquicordContributor, title: "Equicord contributor badge", key: "EquicordContributer", position: settings.store.EquicordContributorPosition },
|
||||
{ src: "https://i.imgur.com/2ydSGVq.png", shown: settings.store.showEquicordTeam, title: "Equicord contributor badge", key: "EquicordContributer", position: settings.store.EquicordTeamPosition },
|
||||
{ src: "https://i.imgur.com/H3GPhpd.png", shown: settings.store.showSuncordDonor, title: "Suncord donor badges", key: "SuncordDonor", position: settings.store.SuncordDonorPosition },
|
||||
{ src: "https://raw.githubusercontent.com/verticalsync/Suncord/main/src/assets/icon.png", shown: settings.store.showSuncordContributor, title: "Suncord contributor badge", key: "SuncordContributer", position: settings.store.SuncordContributorPosition },
|
||||
{ src: "https://cdn.discordapp.com/emojis/1026533070955872337.png", shown: settings.store.showVencordDonor, title: "Vencord donor badges", key: "VencordDonor", position: settings.store.VencordDonorPosition },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue