mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 18:06:22 +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; }) => {
|
memberListBanner: ErrorBoundary.wrap(({ user }: { user: User; }) => {
|
||||||
|
let url: string | null = null;
|
||||||
let url = useFetchMemberProfile(user.id);
|
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 (url === "") return null;
|
||||||
if (!settings.store.animate) url = url.replace(".gif", ".png");
|
if (!settings.store.animate) url = url.replace(".gif", ".png");
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue