added more
This commit is contained in:
parent
834563e31c
commit
8d8a1ef21d
1 changed files with 42 additions and 0 deletions
42
index.tsx
42
index.tsx
|
@ -75,6 +75,18 @@ export default definePlugin({
|
|||
supportsCommands:{
|
||||
type: OptionType.BOOLEAN
|
||||
},
|
||||
premiumApp:{
|
||||
type: OptionType.BOOLEAN
|
||||
},
|
||||
usesAutomod:{
|
||||
type: OptionType.BOOLEAN
|
||||
},
|
||||
orginallyKnownAs:{
|
||||
type: OptionType.BOOLEAN
|
||||
},
|
||||
aClownForATime:{
|
||||
type: OptionType.BOOLEAN
|
||||
},
|
||||
}),
|
||||
async start() {
|
||||
const NativeBadges: ProfileBadge[] = [
|
||||
|
@ -192,6 +204,36 @@ export default definePlugin({
|
|||
shouldShow: ({ userId }) => isCurrentUser(userId) && this.settings.store.supportsCommands,
|
||||
link: "https://discord.com/blog/welcome-to-the-new-era-of-discord-apps?ref=badge"
|
||||
},
|
||||
|
||||
{
|
||||
description: "Premium App",
|
||||
image: "https://cdn.discordapp.com/badge-icons/d2010c413a8da2208b7e4f35bd8cd4ac.png",
|
||||
position: Badges.BadgePosition.END,
|
||||
shouldShow: ({ userId }) => isCurrentUser(userId) && this.settings.store.premiumApp,
|
||||
link: "https://discord.com/blog/welcome-to-the-new-era-of-discord-apps?ref=badge"
|
||||
},
|
||||
// these badges dont have a link because they literally dont link anywhere
|
||||
{
|
||||
description: "Uses Automod",
|
||||
image: "https://cdn.discordapp.com/badge-icons/f2459b691ac7453ed6039bbcfaccbfcd.png",
|
||||
position: Badges.BadgePosition.END,
|
||||
shouldShow: ({ userId }) => isCurrentUser(userId) && this.settings.store.usesAutomod,
|
||||
link: ""
|
||||
},
|
||||
{
|
||||
description: "Originally know as",
|
||||
image: "https://cdn.discordapp.com/badge-icons/6de6d34650760ba5551a79732e98ed60.png",
|
||||
position: Badges.BadgePosition.END,
|
||||
shouldShow: ({ userId }) => isCurrentUser(userId) && this.settings.store.orginallyKnownAs,
|
||||
link: ""
|
||||
},
|
||||
{
|
||||
description: "A clown, for a limited time",
|
||||
image: "",
|
||||
position: Badges.BadgePosition.END,
|
||||
shouldShow: ({ userId }) => isCurrentUser(userId) && this.settings.store.aClownForATime,
|
||||
link: ""
|
||||
},
|
||||
];
|
||||
NativeBadges.forEach(b => Badges.addBadge(b));
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue