mirror of
https://github.com/danbulant/Shasha
synced 2026-05-24 20:31:47 +00:00
timestamp only allowed
This commit is contained in:
parent
e42ca7a138
commit
0eeb8b724a
1 changed files with 1 additions and 4 deletions
|
|
@ -263,15 +263,12 @@ module.exports = class embmaker extends commando.Command {
|
|||
if (autName || autIcon && embed.author !== null) {
|
||||
embed.setAuthor(autName,autIcon,autUrl);
|
||||
}
|
||||
if (!footertext && footericon) {
|
||||
if (!footertext && footericon || !footertext && embed.timestamp) {
|
||||
footertext = '';
|
||||
}
|
||||
if (footertext || footericon && embed.footer !== null) {
|
||||
embed.setFooter(footertext,footericon);
|
||||
}
|
||||
if (embed.timestamp && embed.description === null && !embed.footer) {
|
||||
embed.setFooter('', footericon);
|
||||
}
|
||||
if (embed.length === 0 && (embed.thumbnail === null || embed.thumbnail.url === null) && embed.author === null && (embed.image === null || embed.image.url === null) && embed.timestamp === null) {
|
||||
embed.setDescription('');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue