Orbs
This commit is contained in:
parent
e7f724bc86
commit
b3224b39fd
2 changed files with 19 additions and 0 deletions
10
index.tsx
10
index.tsx
|
@ -243,6 +243,16 @@ export default definePlugin({
|
||||||
shouldShow: ({ userId }) => isCurrentUser(userId) && !!settings.store.aClownForATime,
|
shouldShow: ({ userId }) => isCurrentUser(userId) && !!settings.store.aClownForATime,
|
||||||
link: "https://youtu.be/cc2-4ci4G84"
|
link: "https://youtu.be/cc2-4ci4G84"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Horror discord moment badge for their crypto
|
||||||
|
{
|
||||||
|
description: "Crypto Orbs",
|
||||||
|
image: "https://discord.com/assets/c8440c1470723788.svg",
|
||||||
|
position: Badges.BadgePosition.END,
|
||||||
|
shouldShow: ({ userId }) => isCurrentUser(userId) && !!settings.store.cryptoOrbs,
|
||||||
|
// We'll see it that works
|
||||||
|
link: "https://discord.com/shop?tab=orbs"
|
||||||
|
},
|
||||||
];
|
];
|
||||||
NativeBadges.forEach(b => Badges.addProfileBadge(b));
|
NativeBadges.forEach(b => Badges.addProfileBadge(b));
|
||||||
},
|
},
|
||||||
|
|
|
@ -156,6 +156,11 @@ const settings = definePluginSettings({
|
||||||
hidden: true,
|
hidden: true,
|
||||||
description: "Discord Nitro Opal"
|
description: "Discord Nitro Opal"
|
||||||
},
|
},
|
||||||
|
cryptoOrbs: {
|
||||||
|
type: OptionType.BOOLEAN,
|
||||||
|
hidden: true,
|
||||||
|
description: "Discord Crypto named 'Orbs'"
|
||||||
|
},
|
||||||
badgeSettings: {
|
badgeSettings: {
|
||||||
type: OptionType.COMPONENT,
|
type: OptionType.COMPONENT,
|
||||||
description: "Setup badge layout and visibility",
|
description: "Setup badge layout and visibility",
|
||||||
|
@ -195,6 +200,7 @@ const BadgeSettings = () => {
|
||||||
{ src: "https://cdn.discordapp.com/badge-icons/f2459b691ac7453ed6039bbcfaccbfcd.png", shown: settings.store.usesAutomod, key: "UsesAutomod", title: "Uses Automod" },
|
{ src: "https://cdn.discordapp.com/badge-icons/f2459b691ac7453ed6039bbcfaccbfcd.png", shown: settings.store.usesAutomod, key: "UsesAutomod", title: "Uses Automod" },
|
||||||
{ src: "https://cdn.discordapp.com/badge-icons/6de6d34650760ba5551a79732e98ed60.png", shown: settings.store.legacyUsername, key: "LegacyUsername", title: "Legacy Username" },
|
{ src: "https://cdn.discordapp.com/badge-icons/6de6d34650760ba5551a79732e98ed60.png", shown: settings.store.legacyUsername, key: "LegacyUsername", title: "Legacy Username" },
|
||||||
{ src: "https://discord.com/assets/971cfe4aa5c0582000ea.svg", shown: settings.store.aClownForATime, key: "AClownForALimitedTime", title: "A clown, for a limited time" },
|
{ src: "https://discord.com/assets/971cfe4aa5c0582000ea.svg", shown: settings.store.aClownForATime, key: "AClownForALimitedTime", title: "A clown, for a limited time" },
|
||||||
|
{ src: "https://discord.com/assets/c8440c1470723788.svg", shown: settings.store.cryptoOrbs, key: "cryptoOrbs", title: "Crypto Orbs" },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
@ -284,6 +290,9 @@ const BadgeSettings = () => {
|
||||||
case "AClownForALimitedTime":
|
case "AClownForALimitedTime":
|
||||||
settings.store.aClownForATime = image.shown;
|
settings.store.aClownForATime = image.shown;
|
||||||
break;
|
break;
|
||||||
|
case "cryptoOrbs":
|
||||||
|
settings.store.cryptoOrbs = image.shown;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue