Adds sorting of DMs

Adds support for sortings of DMs and inital work for unread messages along with a function to work arround an error in spacebar's API
This commit is contained in:
MathMan05 2024-05-27 14:34:04 -05:00
parent b4ef272c2e
commit 9676c605e7
5 changed files with 67 additions and 3 deletions

View file

@ -92,9 +92,12 @@ class guild{
this.owner.channelfocus=id;
this.channelids[id].getHTML();
}
sortchannels(){
this.headchannels.sort((a,b)=>{return a.position-b.position;});
}
getHTML(){
//this.printServers();
this.headchannels.sort((a,b)=>{return a.position-b.position;});
this.sortchannels();
this.printServers();
console.log("html")
const build=document.createElement("div");