mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 09:56:24 +00:00
add back in USRBG support
This commit is contained in:
parent
17131fa739
commit
03d2691fff
1 changed files with 8 additions and 2 deletions
|
@ -82,8 +82,14 @@ export default definePlugin({
|
|||
},
|
||||
|
||||
memberListBanner: ErrorBoundary.wrap(({ user }: { user: User; }) => {
|
||||
|
||||
let url = useFetchMemberProfile(user.id);
|
||||
let url: string | null = null;
|
||||
if (Vencord.Plugins.isPluginEnabled("USRBG")) {
|
||||
const USRBG = Vencord.Plugins.plugins.USRBG as unknown as typeof import("../usrbg/index").default;
|
||||
url = USRBG.getImageUrl(user.id);
|
||||
}
|
||||
if (!url) {
|
||||
url = useFetchMemberProfile(user.id);
|
||||
}
|
||||
if (url === "") return null;
|
||||
if (!settings.store.animate) url = url.replace(".gif", ".png");
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue