Guild context menu plus prep for guild creation

This commit is contained in:
MathMan05
2024-06-12 16:05:49 -05:00
parent 0e34ddcacb
commit 01970f336b
4 changed files with 83 additions and 5 deletions

View File

@@ -120,7 +120,7 @@ class localuser{
this.guildhtml[thing.id]=divy;
if(thing.properties.icon!=null){
const img=document.createElement("img");
img.classList.add("pfp","servericon")
img.classList.add("pfp","servericon");
img.src=info.cdn.toString()+"icons/"+thing.properties.id+"/"+thing.properties.icon+".png";
divy.appendChild(img)
img.all=thing;
@@ -129,6 +129,7 @@ class localuser{
this.all.loadGuild();
this.all.loadChannel();
}
guild.contextmenu.bind(img,thing);
}else{
const div=document.createElement("div");
let build="";
@@ -143,9 +144,24 @@ class localuser{
this.all.loadGuild();
this.all.loadChannel();
}
guild.contextmenu.bind(div,thing)
}
serverlist.append(divy);
}
{
const br=document.createElement("hr")
br.classList.add("lightbr");
serverlist.appendChild(br);
const div=document.createElement("div");
div.innerText="+";
div.classList.add("addserver","servericon")
serverlist.appendChild(div)
div.onclick=function(){
console.log("clicked :3")
}
}
this.unreads();
}
messageCreate(messagep){