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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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