removes a lot of uneeded logs

This commit is contained in:
MathMan05 2024-06-24 16:31:02 -05:00
parent 8a1d7ee38b
commit c70008835c
8 changed files with 0 additions and 29 deletions

View file

@ -230,7 +230,6 @@ class channel{
this.lastreadmessageid=this.lastmessageid; this.lastreadmessageid=this.lastmessageid;
this.guild.unreads(); this.guild.unreads();
if(this.myhtml!==null){ if(this.myhtml!==null){
console.log(this.myhtml.classList)
this.myhtml.classList.remove("cunread"); this.myhtml.classList.remove("cunread");
} }
} }
@ -254,7 +253,6 @@ class channel{
} }
that.parrent=this; that.parrent=this;
container.prepend(channel.dragged[1]); container.prepend(channel.dragged[1]);
console.log(this,that)
this.children.unshift(that); this.children.unshift(that);
}else{ }else{
console.log(this,channel.dragged); console.log(this,channel.dragged);
@ -436,7 +434,6 @@ class channel{
} }
document.getElementById("messagecontainer").scrollTop = document.getElementById("messagecontainer").scrollHeight; document.getElementById("messagecontainer").scrollTop = document.getElementById("messagecontainer").scrollHeight;
console.log(typebox.disabled=!this.canMessage);
} }
updateChannel(JSON){ updateChannel(JSON){
this.type=JSON.type; this.type=JSON.type;

View file

@ -314,7 +314,6 @@ class guild{
//this.printServers(); //this.printServers();
this.sortchannels(); this.sortchannels();
this.printServers(); this.printServers();
console.log("html")
const build=document.createElement("div"); const build=document.createElement("div");
for(const thing of this.headchannels){ for(const thing of this.headchannels){
build.appendChild(thing.createguildHTML(this.isAdmin())); build.appendChild(thing.createguildHTML(this.isAdmin()));
@ -356,7 +355,6 @@ class guild{
return this.roleids[ID]; return this.roleids[ID];
} }
hasRole(r){ hasRole(r){
console.log(typeof r,(typeof ""));
if((typeof r)!==(typeof "")){ if((typeof r)!==(typeof "")){
r=r.id; r=r.id;
} }

View file

@ -135,7 +135,6 @@ class localuser{
console.log(users,temp.d.id) console.log(users,temp.d.id)
if(users){ if(users){
users.userupdate(temp.d); users.userupdate(temp.d);
console.log("in here");
} }
} }
break break
@ -167,9 +166,7 @@ class localuser{
const guildy=new guild(temp.d,this); const guildy=new guild(temp.d,this);
this.guilds.push(guildy); this.guilds.push(guildy);
this.guildids[guildy.id]=guildy; this.guildids[guildy.id]=guildy;
console.log("test1")
document.getElementById("servers").insertBefore(guildy.generateGuildIcon(),document.getElementById("bottomseperator")); document.getElementById("servers").insertBefore(guildy.generateGuildIcon(),document.getElementById("bottomseperator"));
console.log("test2")
} }
} }
@ -237,9 +234,7 @@ class localuser{
const location=window.location.href.split("/"); const location=window.location.href.split("/");
if(location[3]==="channels"){ if(location[3]==="channels"){
const guild=this.loadGuild(location[4]); const guild=this.loadGuild(location[4]);
console.log(guild);
guild.loadChannel(location[5]); guild.loadChannel(location[5]);
console.log(location[5])
this.channelfocus=guild.channelids[location[5]]; this.channelfocus=guild.channelids[location[5]];
} }
this.buildservers(); this.buildservers();
@ -472,7 +467,6 @@ class localuser{
const hypoprofile=buildprofile(-1,-1,hypouser); const hypoprofile=buildprofile(-1,-1,hypouser);
hypothetcialprofie.appendChild(hypoprofile) hypothetcialprofie.appendChild(hypoprofile)
console.log(hypothetcialprofie,hypoprofile)
} }
regen(); regen();
this.usersettings=new fullscreen( this.usersettings=new fullscreen(

View file

@ -43,7 +43,6 @@ function markdown(txt,keep=false){
element=document.createElement("div"); element=document.createElement("div");
const line=document.createElement("div"); const line=document.createElement("div");
line.classList.add("quoteline"); line.classList.add("quoteline");
console.log(line);
element.append(line); element.append(line);
element.classList.add("quote"); element.classList.add("quote");
keepys="> "; keepys="> ";

View file

@ -13,7 +13,6 @@ class member{
this[thing]=membery[thing]; this[thing]=membery[thing];
} }
this.user=new user(this.user); this.user=new user(this.user);
console.log(this)
} }
get guild(){ get guild(){
return this.owner; return this.owner;
@ -43,7 +42,6 @@ class member{
} }
hasRole(ID){ hasRole(ID){
for(const thing of this.roles){ for(const thing of this.roles){
console.log(this.roles)
if(thing.id===ID){ if(thing.id===ID){
return true; return true;
} }
@ -51,10 +49,8 @@ class member{
return false; return false;
} }
getColor(){ getColor(){
console.log(this);
for(const thing of this.roles){ for(const thing of this.roles){
const color=thing.getColor(); const color=thing.getColor();
console.log(thing);
if(color){ if(color){
return color; return color;
} }
@ -62,7 +58,6 @@ class member{
return ""; return "";
} }
isAdmin(){ isAdmin(){
console.log(this);
return this.guild.properties.owner_id===this.user.id; return this.guild.properties.owner_id===this.user.id;
} }

View file

@ -2,11 +2,9 @@ class cmessage{
static contextmenu=new contextmenu("message menu"); static contextmenu=new contextmenu("message menu");
static setupcmenu(){ static setupcmenu(){
cmessage.contextmenu.addbutton("Copy raw text",function(){ cmessage.contextmenu.addbutton("Copy raw text",function(){
console.log(this)
navigator.clipboard.writeText(this.content); navigator.clipboard.writeText(this.content);
}); });
cmessage.contextmenu.addbutton("Reply",function(div){ cmessage.contextmenu.addbutton("Reply",function(div){
console.log(this)
if(replyingto){ if(replyingto){
replyingto.classList.remove("replying"); replyingto.classList.remove("replying");
} }
@ -15,15 +13,12 @@ class cmessage{
replyingto.classList.add("replying"); replyingto.classList.add("replying");
}); });
cmessage.contextmenu.addbutton("Copy message id",function(){ cmessage.contextmenu.addbutton("Copy message id",function(){
console.log(this)
navigator.clipboard.writeText(this.id); navigator.clipboard.writeText(this.id);
}); });
cmessage.contextmenu.addbutton("Copy user id",function(){ cmessage.contextmenu.addbutton("Copy user id",function(){
console.log(this)
navigator.clipboard.writeText(this.author.id); navigator.clipboard.writeText(this.author.id);
}); });
cmessage.contextmenu.addbutton("Message user",function(){ cmessage.contextmenu.addbutton("Message user",function(){
console.log(this)
fetch(info.api.toString()+"/v9/users/@me/channels", fetch(info.api.toString()+"/v9/users/@me/channels",
{method:"POST", {method:"POST",
body:JSON.stringify({"recipients":[this.author.id]}), body:JSON.stringify({"recipients":[this.author.id]}),
@ -31,7 +26,6 @@ class cmessage{
}); });
}) })
cmessage.contextmenu.addbutton("Edit",function(){ cmessage.contextmenu.addbutton("Edit",function(){
console.log(this)
editing=this; editing=this;
document.getElementById("typebox").value=this.content; document.getElementById("typebox").value=this.content;
},null,_=>{return _.author.id==READY.d.user.id}); },null,_=>{return _.author.id==READY.d.user.id});
@ -111,8 +105,6 @@ class cmessage{
username.classList.add("username"); username.classList.add("username");
member.resolve(this.author,this.guild).then(_=>{ member.resolve(this.author,this.guild).then(_=>{
console.log(_);
console.log(_.getColor());
username.style.color=_.getColor(); username.style.color=_.getColor();
}); });
@ -173,8 +165,6 @@ class cmessage{
username.classList.add("username") username.classList.add("username")
profileclick(username,this.author); profileclick(username,this.author);
member.resolve(this.author,this.guild).then(_=>{ member.resolve(this.author,this.guild).then(_=>{
console.log(_);
console.log(_.getColor());
username.style.color=_.getColor(); username.style.color=_.getColor();
}) })
username.textContent=this.author.username; username.textContent=this.author.username;

View file

@ -5,7 +5,6 @@ class role{
} }
this.permissions=new permissions(JSON.permissions); this.permissions=new permissions(JSON.permissions);
this.owner=owner; this.owner=owner;
console.log(this);
} }
get guild(){ get guild(){
return this.owner; return this.owner;

View file

@ -16,7 +16,6 @@ class user{
this[thing]=userjson[thing]; this[thing]=userjson[thing];
} }
this.hypotheticalpfp=false; this.hypotheticalpfp=false;
console.log(this);
}else{ }else{
return user.checkuser(userjson); return user.checkuser(userjson);
} }