Correct badges in chat
This commit is contained in:
parent
c6bc14a1d7
commit
c3afe9e275
|
@ -485,19 +485,49 @@ 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") {
|
||||||
|
// Rauenzi: BandagedBD Developer
|
||||||
children.push(
|
children.push(
|
||||||
BDV2.React.createElement(TooltipWrap, {color: "black", side: "top", text: "BandagedBD Developer"},
|
BDV2.React.createElement(
|
||||||
BDV2.React.createElement(Anchor, {className: "bd-chat-badge", href: "https://github.com/rauenzi/BetterDiscordApp", title: "BandagedBD", target: "_blank"},
|
TooltipWrap,
|
||||||
BDV2.React.createElement(BDLogo, {size: "16px", className: "bd-logo"})
|
{ color: "black", side: "top", text: "BandagedBD Developer" },
|
||||||
|
BDV2.React.createElement(
|
||||||
|
Anchor,
|
||||||
|
{
|
||||||
|
className: "bd-chat-badge",
|
||||||
|
href: "https://github.com/rauenzi/BetterDiscordApp",
|
||||||
|
title: "BandagedBD",
|
||||||
|
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 === "696003456611385396"){ // Not Thomiz: Lightcord Developer, Phorcys: Lightcord Developer
|
} else if (
|
||||||
|
author.id === "696481194443014174" ||
|
||||||
|
author.id === "363022107753578496" ||
|
||||||
|
author.id === "424639027606585356"
|
||||||
|
) {
|
||||||
|
// Not Thomiz: Lightcord Developer, Phorcys: Lightcord Developer
|
||||||
children.push(
|
children.push(
|
||||||
BDV2.React.createElement(TooltipWrap, {color: "black", side: "top", text: "Lightcord Developer"},
|
BDV2.React.createElement(
|
||||||
BDV2.React.createElement(Anchor, {className: "bd-chat-badge", href: "https://github.com/Lightcord/Lightcord", title: "Lightcord", target: "_blank"},
|
TooltipWrap,
|
||||||
BDV2.React.createElement(LightcordLogo, {size: "16px", className: "bd-logo"})
|
{ 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",
|
||||||
|
})
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue