another bug fix

This commit is contained in:
MathMan05 2024-08-16 22:24:16 -05:00
parent def930115f
commit 2d9d71c91f
4 changed files with 6 additions and 6 deletions

View file

@ -280,7 +280,7 @@ class Message{
const combine=(premessage?.author?.snowflake!=this.author.snowflake)||(current)||this.message_reference
if(combine){
const pfp=this.author.buildpfp();
this.author.bind(pfp,this.guild);
this.author.bind(pfp,this.guild,false);
pfpRow.appendChild(pfp);
}else{
div["pfpparent"]=pfpparent;

View file

@ -155,10 +155,10 @@ class User{
this.changepfp(json.avatar);
}
}
bind(html:HTMLElement,guild:Guild=null){
bind(html:HTMLElement,guild:Guild=null,error=true){
if(guild&&guild.id!=="@me"){
Member.resolveMember(this,guild).then(_=>{
if(_===undefined){
if(_===undefined&&error){
const error=document.createElement("span");
error.textContent="!";
error.classList.add("membererror");