Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $nomention
- $onlyPerms[managemessages;$ephemeral**🚫 Missing Permission:**You need `Manage Messages` permission to run this command.]
- $var[channel.ID;$message[channel]]
- $onlyBotChannelPerms[$var[channel.ID];embedlinks;$ephemeral**🚫 Missing Permission:**Bot needs `Embed Links` permission to run this command.]
- $if[$charCount[$message[content]]>2000]
- $ephemeral
- $title[🚫 Character Limit]
- $color[ff0000]
- $description[**Content** should not be more than 2000 characters.]
- $stop
- $else
- $var[content;$message[content]]
- $endif
- $if[$charCount[$message[title]]>256]
- $ephemeral
- $title[🚫 Character Limit]
- $color[ff0000]
- $description[**Title** should not be more than 256 characters.]
- $stop
- $else
- $var[title;$message[title]]
- $endif
- $var[title.URL;$message[title-url]]
- $if[$charCount[$message[description]]>4096]
- $ephemeral
- $title[🚫 Character Limit]
- $color[ff0000]
- $description[**Description** should not be more than 4096 characters.]
- $stop
- $else
- $var[description;$message[description]]
- $endif
- $if[$message[color]!=]
- $if[$isValidHex[$message[color]]==false]
- $ephemeral
- $title[🚫 Invalid Hex]
- $description["$message[color]" is not a valid hex.]
- $color[ff0000]
- $stop
- $else
- $var[color;$message[color]]
- $endif
- $endif
- $if[$charCount[$message[author]]>256]
- $ephemeral
- $title[🚫 Character Limit]
- $color[ff0000]
- $description[**Author** should not be more than 256 characters.]
- $stop
- $else
- $var[author;$message[author]]
- $endif
- $if[$charCount[$message[footer]]>2048]
- $ephemeral
- $title[🚫 Character Limit]
- $color[ff0000]
- $description[**Footer** should not be more than 2048 characters.]
- $stop
- $else
- $var[footer;$message[footer]]
- $endif
- $if[$message[add-timestamp]==true]
- $var[add-timestamp;yes]
- $elseif[$message[add-timestamp]==false]
- $var[add-timestamp;no]
- $endif
- $sendEmbedMessage[$var[channel.ID];$var[content];$var[title];$var[title.URL];$var[description];$var[color];$var[author];$var[author-icon];$var[footer];$var[footer-icon];$var[thumbnail];$var[image];$var[add-timestamp];no]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement