Added package.json and various minor changes

This commit is contained in:
MathMan05
2024-06-07 09:07:21 -05:00
parent 3b55b28260
commit fb34201101
5 changed files with 22 additions and 1 deletions

View File

@@ -18,7 +18,6 @@ class dirrect extends guild{
this.channelids[temp.id]=temp;
}
this.headchannels=this.channels;
this.mentions=0;
}
createChannelpac(JSON){
const thischannel=new group(JSON,owner);
@@ -73,6 +72,7 @@ class group extends channel{
this.permission_overwrites=[];
this.lastmessageid=JSON.last_message_id;
this.lastmessageid??=0;
this.mentions=0;
}
createguildHTML(){
const div=document.createElement("div")
@@ -141,6 +141,7 @@ class group extends channel{
const noti=document.createElement("div");
noti.classList.add("unread","notiunread","pinged");
noti.innerText=this.mentions;
console.log(this.mentions)
div.noti=noti;
div.append(noti)
const buildpfp=this.user.buildpfp();