update bard design

This commit is contained in:
derpystuff 2023-10-10 17:59:34 +02:00
parent 11b0512c01
commit 8fd752b9b0
3 changed files with 20 additions and 21 deletions

View file

@ -105,7 +105,7 @@ module.exports.createEmbed = function(type, context, content){
if(!content) embedTypes[type](context)
let emb = embedTypes[type](context)
if(["success","warning","error","loading","ai"].includes(type)){
if(["success","warning","error","loading","ai","ai_bard"].includes(type)){
emb.author.name = content
return emb
}
@ -116,7 +116,7 @@ module.exports.createEmbed = function(type, context, content){
return emb
}
if(content && content.footer && !content.footer.iconUrl) content.footer.iconUrl = STATICS.labscore
if(content && content.footer && !content.footer.iconUrl && type !== "defaultNoFooter") content.footer.iconUrl = STATICS.labscore
if(["image"].includes(type)){
if(content.url.includes('://')){