Correct badges in chat

This commit is contained in:
smartfridge 2021-06-16 19:20:33 +02:00
parent c6bc14a1d7
commit c3afe9e275
1 changed files with 46 additions and 16 deletions

View File

@ -485,22 +485,52 @@ Core.prototype.patchMessageHeader = function() {
if (!children || !author || !author.id)return if (!children || !author || !author.id)return
// if (header && header.className) header.className += " " // if (header && header.className) header.className += " "
if (!Array.isArray(children)) return; if (!Array.isArray(children)) return;
if (author.id === "249746236008169473") { // Rauenzi: BandagedBD Developer if (author.id === "249746236008169473") {
children.push( // Rauenzi: BandagedBD Developer
BDV2.React.createElement(TooltipWrap, {color: "black", side: "top", text: "BandagedBD Developer"}, children.push(
BDV2.React.createElement(Anchor, {className: "bd-chat-badge", href: "https://github.com/rauenzi/BetterDiscordApp", title: "BandagedBD", target: "_blank"}, BDV2.React.createElement(
BDV2.React.createElement(BDLogo, {size: "16px", className: "bd-logo"}) TooltipWrap,
) { color: "black", side: "top", text: "BandagedBD Developer" },
) BDV2.React.createElement(
); Anchor,
} else if (author.id === "696481194443014174" || author.id === "696003456611385396"){ // Not Thomiz: Lightcord Developer, Phorcys: Lightcord Developer {
children.push( className: "bd-chat-badge",
BDV2.React.createElement(TooltipWrap, {color: "black", side: "top", text: "Lightcord Developer"}, href: "https://github.com/rauenzi/BetterDiscordApp",
BDV2.React.createElement(Anchor, {className: "bd-chat-badge", href: "https://github.com/Lightcord/Lightcord", title: "Lightcord", target: "_blank"}, title: "BandagedBD",
BDV2.React.createElement(LightcordLogo, {size: "16px", className: "bd-logo"}) target: "_blank",
) },
) BDV2.React.createElement(BDLogo, {
); size: "16px",
className: "bd-logo",
})
)
)
); //(props.user.id === "696481194443014174" || props.user.id === "363022107753578496"|| props.user.id === "424639027606585356"){ // Not Thomiz: Lightcord Developer, Phorcys: Lightcord Developer, smartfridge: Lightcord Dev
} else if (
author.id === "696481194443014174" ||
author.id === "363022107753578496" ||
author.id === "424639027606585356"
) {
// Not Thomiz: Lightcord Developer, Phorcys: Lightcord Developer
children.push(
BDV2.React.createElement(
TooltipWrap,
{ color: "black", side: "top", text: "Lightcord Developer" },
BDV2.React.createElement(
Anchor,
{
className: "bd-chat-badge",
href: "https://github.com/Lightcord/Lightcord",
title: "Lightcord",
target: "_blank",
},
BDV2.React.createElement(LightcordLogo, {
size: "16px",
className: "bd-logo",
})
)
)
);
} }
const id = uuidv4() const id = uuidv4()
children.push( children.push(