generated from replugged-org/plugin-template
- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: moved types to different files
1 parent
b2fd814
commit 60955c0
Showing
1 changed file
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
export interface CustomBadges { | ||
customBadgesArray: { | ||
badge: string; | ||
name: string; | ||
badges: [ | ||
{ | ||
name: string; | ||
badge: string; | ||
}, | ||
]; | ||
}; | ||
aliu: { | ||
dev: boolean; | ||
donor: boolean; | ||
contributor: boolean; | ||
custom: { | ||
url: string; | ||
text: string; | ||
}; | ||
}; | ||
bd: { | ||
dev: boolean; | ||
}; | ||
enmity: { | ||
supporter: { | ||
data: { | ||
name: string; | ||
id: string; | ||
url: { | ||
dark: string; | ||
light: string; | ||
}; | ||
}; | ||
}; | ||
staff: { | ||
data: { | ||
name: string; | ||
id: string; | ||
url: { | ||
dark: string; | ||
light: string; | ||
}; | ||
}; | ||
}; | ||
dev: { | ||
data: { | ||
name: string; | ||
id: string; | ||
url: { | ||
dark: string; | ||
light: string; | ||
}; | ||
}; | ||
}; | ||
contributor: { | ||
data: { | ||
name: string; | ||
id: string; | ||
url: { | ||
dark: string; | ||
light: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
goosemod: { | ||
sponsor: boolean; | ||
dev: boolean; | ||
translator: boolean; | ||
}; | ||
vencord: { | ||
contributor: boolean; | ||
cutie: [ | ||
{ | ||
tooltip: string; | ||
image: string; | ||
}, | ||
]; | ||
}; | ||
userpfp: string; | ||
} | ||
|
||
export interface BadgeArgs { | ||
guildId: string; | ||
user: User; | ||
} | ||
|
||
export type BadgeMod = (args: BadgeArgs) => React.ReactElement<{ | ||
children: React.ReactElement[]; | ||
className: string; | ||
}>; | ||
|
||
export type BadgeCache = { | ||
badges: CustomBadges; | ||
lastFetch: number; | ||
}; |