mirror of
https://github.com/Equicord/Equicord.git
synced 2025-04-01 13:11:57 -04:00
Fix ShowBadgesInChat
This commit is contained in:
parent
61ea729381
commit
87ca13518b
1 changed files with 2 additions and 10 deletions
|
@ -126,21 +126,13 @@ function CheckBadge({ badge, author }: { badge: string; author: User; }): JSX.El
|
||||||
</span>
|
</span>
|
||||||
) : null;
|
) : null;
|
||||||
case "DiscordNitro":
|
case "DiscordNitro":
|
||||||
let premiumType: Number | undefined;
|
return (author?.premiumType ?? 0) > 0 ? (
|
||||||
premiumType = author?.premiumType;
|
|
||||||
// @ts-ignore
|
|
||||||
if (author?._realPremiumType) {
|
|
||||||
// @ts-ignore
|
|
||||||
premiumType = author?._realPremiumType;
|
|
||||||
}
|
|
||||||
// @ts-ignore
|
|
||||||
return premiumType > 0 ? (
|
|
||||||
<span style={{ order: settings.store.DiscordNitroPosition }}>
|
<span style={{ order: settings.store.DiscordNitroPosition }}>
|
||||||
<RoleIconComponent
|
<RoleIconComponent
|
||||||
className={roleIconClassName}
|
className={roleIconClassName}
|
||||||
name={
|
name={
|
||||||
"Discord Nitro" +
|
"Discord Nitro" +
|
||||||
(premiumType === 3 ? " Basic" : premiumType === 1 ? " Classic" : "")
|
(author.premiumType === 3 ? " Basic" : author.premiumType === 1 ? " Classic" : "")
|
||||||
}
|
}
|
||||||
size={20}
|
size={20}
|
||||||
src={"https://cdn.discordapp.com/badge-icons/2ba85e8026a8614b640c2837bcdfe21b.png"}
|
src={"https://cdn.discordapp.com/badge-icons/2ba85e8026a8614b640c2837bcdfe21b.png"}
|
||||||
|
|
Loading…
Add table
Reference in a new issue