chat command

This commit is contained in:
derpystuff 2023-05-28 10:44:37 +02:00
parent 760e1167c3
commit f1a64a25d9
2 changed files with 40 additions and 0 deletions

View file

@ -83,6 +83,8 @@ 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(["image"].includes(type)){
if(content.url.includes('://')){
emb.image = { url: content.url }
@ -99,6 +101,7 @@ module.exports.createEmbed = function(type, context, content){
return emb
}
return Object.assign(emb, content)
}