mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
update bard design
This commit is contained in:
parent
11b0512c01
commit
8fd752b9b0
3 changed files with 20 additions and 21 deletions
|
@ -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('://')){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue