More embed fixes
This commit is contained in:
@@ -37,6 +37,7 @@ class embed{
|
||||
title.textContent=this.json.title;
|
||||
embed.append(title);
|
||||
embed.append(document.createElement("br"));
|
||||
if(this.json.fields){
|
||||
for(const thing of this.json.fields){
|
||||
const b=document.createElement("b");
|
||||
b.textContent=thing.name;
|
||||
@@ -47,6 +48,8 @@ class embed{
|
||||
p.classList.add("embedp")
|
||||
embed.append(p);
|
||||
}
|
||||
}
|
||||
if(this.json.footer){
|
||||
const footer=document.createElement("div");
|
||||
if(this.json.footer.icon_url){
|
||||
const img=document.createElement("img");
|
||||
@@ -58,6 +61,7 @@ class embed{
|
||||
footer.append(this.json.footer.text);
|
||||
}
|
||||
embed.append(footer);
|
||||
}
|
||||
return div;
|
||||
}
|
||||
generateImage(){
|
||||
|
Reference in New Issue
Block a user