mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-11 07:33:14 -04:00
fix embed
This commit is contained in:
parent
8b828473d8
commit
c3f23c4d43
1 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ module.exports.createEmbed = function(type, context, content){
|
|||
return emb
|
||||
}
|
||||
|
||||
if(content.footer && !content.footer.iconUrl) content.footer.iconUrl = `https://cdn.discordapp.com/avatars/${context.application.id}/${context.application.icon}.png?size=256`
|
||||
if(content && content.footer && !content.footer.iconUrl) content.footer.iconUrl = `https://cdn.discordapp.com/avatars/${context.application.id}/${context.application.icon}.png?size=256`
|
||||
|
||||
if(["image"].includes(type)){
|
||||
if(content.url.includes('://')){
|
||||
|
@ -97,7 +97,7 @@ module.exports.createEmbed = function(type, context, content){
|
|||
if(content.provider.icon) emb.footer.iconUrl = content.provider.icon
|
||||
}
|
||||
|
||||
if(content.time) emb.footer.text = `${emb.footer.text} • Took ${content.time}s`
|
||||
if(content.time && emb.footer) emb.footer.text = `${emb.footer.text} • Took ${content.time}s`
|
||||
|
||||
return emb
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue