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:
parent
b4ef272c2e
commit
9676c605e7
5 changed files with 67 additions and 3 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue