fix a few bugs

This commit is contained in:
MathMan05 2024-08-16 22:21:38 -05:00
parent 81dd5516b5
commit def930115f
4 changed files with 8 additions and 8 deletions

View file

@ -202,7 +202,7 @@ class User{
createjankpromises(){
new Promise(_=>{})
}
async buildprofile(x:number,y:number,guild:Guild){
async buildprofile(x:number,y:number,guild:Guild=null){
if(Contextmenu.currentmenu!=""){
Contextmenu.currentmenu.remove();
}
@ -263,7 +263,7 @@ class User{
userbody.appendChild(rule);
const biohtml=this.bio.makeHTML();
userbody.appendChild(biohtml);
{
if(guild){
Member.resolveMember(this,guild).then(member=>{
if(!member) return;
const roles=document.createElement("div");