bot tags everywhere

This commit is contained in:
MathMan05 committed 2025-10-16 09:55:48 -05:00
1 parent 1f1f4d2849
commit 014a69a70c
3 files changed
+37 -1

No files matched your search

+6
View File
@@ -1187,6 +1187,12 @@ class Localuser {
const username = document.createElement("span");
username.classList.add("ellipsis");
username.textContent = member.name;
if (user.bot) {
const bot = document.createElement("span");
bot.classList.add("bot");
bot.textContent = I18n.bot();
username.appendChild(bot);
}
member.bind(username);
user.bind(memberdiv, member instanceof Member ? member.guild : undefined, false);
memberdiv.append(pfp, username);
+2
View File
@@ -2120,6 +2120,8 @@ span.instanceStatus {
font-weight: bold;
color: var(--primary-text-prominent);
border-radius: 4px;
flex-grow: 0;
width: fit-content;
}
.membererror {
display: inline-block;
+29 -1
View File
@@ -812,9 +812,18 @@ class User extends SnowFlake {
const userbody = document.createElement("div");
userbody.classList.add("flexttb", "infosection");
div.appendChild(userbody);
const usernamehtml = document.createElement("h2");
usernamehtml.textContent = this.username;
usernamehtml.textContent = this.name;
userbody.appendChild(usernamehtml);
if (this.bot) {
const username = document.createElement("span");
username.classList.add("bot");
username.textContent = this.webhook ? I18n.webhook() : I18n.bot();
usernamehtml.appendChild(username);
}
userbody.appendChild(badgediv);
const discrimatorhtml = document.createElement("h3");
discrimatorhtml.classList.add("tag");
@@ -871,6 +880,12 @@ class User extends SnowFlake {
joined.append(p);
usernamehtml.textContent = member.name;
if (this.bot) {
const username = document.createElement("span");
username.classList.add("bot");
username.textContent = this.webhook ? I18n.webhook() : I18n.bot();
usernamehtml.appendChild(username);
}
roles.classList.add("flexltr", "rolesbox");
for (const role of member.roles) {
@@ -1056,7 +1071,14 @@ class User extends SnowFlake {
div.appendChild(userbody);
const usernamehtml = document.createElement("h2");
usernamehtml.textContent = this.username;
userbody.appendChild(usernamehtml);
if (this.bot) {
const username = document.createElement("span");
username.classList.add("bot");
username.textContent = this.webhook ? I18n.webhook() : I18n.bot();
usernamehtml.appendChild(username);
}
userbody.appendChild(badgediv);
const discrimatorhtml = document.createElement("h3");
discrimatorhtml.classList.add("tag");
@@ -1093,6 +1115,12 @@ class User extends SnowFlake {
membres.then((member) => {
if (!member) return;
usernamehtml.textContent = member.name;
if (this.bot) {
const username = document.createElement("span");
username.classList.add("bot");
username.textContent = this.webhook ? I18n.webhook() : I18n.bot();
usernamehtml.appendChild(username);
}
const roles = document.createElement("div");
roles.classList.add("flexltr", "rolesbox");
for (const role of member.roles) {