general changes and reducing logs

This commit is contained in:
MathMan05 2024-07-27 12:51:42 -05:00
parent 0d757b7d4e
commit 7a745a5286
16 changed files with 146 additions and 78 deletions

View file

@ -288,7 +288,6 @@ class Localuser {
if (!guild) {
guild = this.guildids.get("@me");
}
console.log(this.guildids, id, guild);
if (this.lookingguild) {
this.lookingguild.html.classList.remove("serveropen");
}
@ -345,7 +344,6 @@ class Localuser {
div.classList.add("home", "servericon");
serverlist.appendChild(div);
div.onclick = _ => {
console.log("clicked :3");
this.createGuild();
};
const guildDiscoveryContainer = document.createElement("div");
@ -356,7 +354,6 @@ class Localuser {
this.guildDiscovery();
});
}
console.log("test");
this.unreads();
}
createGuild() {
@ -369,7 +366,6 @@ class Localuser {
"Invite Link/Code",
"",
function () {
console.log(this);
inviteurl = this.value;
}
],
@ -389,7 +385,6 @@ class Localuser {
method: "POST",
headers: this.headers,
}).then(r => r.json()).then(_ => {
console.log(_);
if (_.message) {
error.textContent = _.message;
}
@ -463,13 +458,11 @@ class Localuser {
this.unreads();
}
unreads() {
console.log(this.guildhtml);
for (const thing of this.guilds) {
if (thing.id === "@me") {
continue;
}
const html = this.guildhtml.get(thing.id);
console.log(html);
thing.unreads(html);
}
}
@ -506,7 +499,6 @@ class Localuser {
updatepfp(file) {
var reader = new FileReader();
reader.readAsDataURL(file);
console.log(this.headers);
reader.onload = () => {
fetch(this.info.api.toString() + "/users/@me", {
method: "PATCH",
@ -515,7 +507,6 @@ class Localuser {
avatar: reader.result,
})
});
console.log(reader.result);
};
}
updatepronouns(pronouns) {
@ -559,7 +550,6 @@ class Localuser {
else {
build += " is typing";
}
console.log(typingtext.classList);
if (showing) {
typingtext.classList.remove("hidden");
document.getElementById("typingtext").textContent = build;
@ -573,7 +563,7 @@ class Localuser {
let file = null;
let newprouns = null;
let newbio = null;
let hypouser = new User(this.user, this, true);
let hypouser = this.user.clone();
function regen() {
hypotheticalProfile.textContent = "";
const hypoprofile = hypouser.buildprofile(-1, -1);