mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-21 07:38:51 -05:00
Feat(UserPFP): Fix Spelling
This commit is contained in:
parent
ef61c150b1
commit
b955a1c2ba
1 changed files with 4 additions and 7 deletions
|
@ -30,19 +30,18 @@ const settings = definePluginSettings({
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
data,
|
data,
|
||||||
|
|
||||||
name: "UserPFP",
|
name: "UserPFP",
|
||||||
description: "Allows you to use an animated avatar without Nitro",
|
description: "Allows you to use an animated avatar without Nitro",
|
||||||
authors: [EquicordDevs.nexpid, EquicordDevs.thororen, EquicordDevs.FoxStorm1, EquicordDevs.coolesding],
|
authors: [EquicordDevs.nexpid, EquicordDevs.thororen],
|
||||||
settings,
|
settings,
|
||||||
settingsAboutComponent: () => (
|
settingsAboutComponent: () => (
|
||||||
<>
|
<>
|
||||||
<Link href="https://userpfp.github.io/UserPFP/#how-to-request-a-profile-picture-pfp">
|
<Link href="https://userpfp.github.io/UserPFP/#how-to-request-a-profile-picture-pfp">
|
||||||
<b>Submit your own pfp here</b>
|
<b>Submit your own PFP here!</b>
|
||||||
</Link>
|
</Link>
|
||||||
<br></br>
|
<br></br>
|
||||||
<Link href="https://ko-fi.com/coolesding">
|
<Link href="https://ko-fi.com/coolesding">
|
||||||
<b>Support UserPFP</b>
|
<b>Support UserPFP here!</b>
|
||||||
</Link>
|
</Link>
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
|
@ -62,15 +61,13 @@ export default definePlugin({
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
getAvatarHook: (original: any) => (user: User, animated: boolean, size: number) => {
|
getAvatarHook: (original: any) => (user: User, animated: boolean, size: number) => {
|
||||||
if (settings.store.preferNitro && user.avatar?.startsWith("a_")) return original(user, animated, size);
|
if (settings.store.preferNitro && user.avatar?.startsWith("a_")) return original(user, animated, size);
|
||||||
|
|
||||||
return data.avatars[user.id] ?? original(user, animated, size);
|
return data.avatars[user.id] ?? original(user, animated, size);
|
||||||
},
|
},
|
||||||
|
|
||||||
async start() {
|
async start() {
|
||||||
const res = await fetch(BASE_URL);
|
const res = await fetch(BASE_URL);
|
||||||
if (res.ok) this.data = data = await res.json();
|
if (res.ok) this.data = data = await res.json();
|
||||||
},
|
}
|
||||||
});
|
});
|
Loading…
Add table
Reference in a new issue