ArtX

Discord.js rich embed

Oct 25th, 2018
1,191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. ++eval message.channel.send({embed: {
  2. color: 3447003,
  3. author: {
  4. name: bot.user.username,
  5. icon_url: bot.user.avatarURL
  6. },
  7. title: "This is an embed",
  8. url: "http://google.com",
  9. description: "This is a test embed to showcase what they look like and what they can do.",
  10. fields: [{
  11. name: "Fields",
  12. value: "They can have different fields with small headlines."
  13. },
  14. {
  15. name: "Masked links",
  16. value: "You can put [masked links](http://google.com) inside of rich embeds."
  17. },
  18. {
  19. name: "Markdown",
  20. value: "You can put all the *usual* **__Markdown__** inside of them."
  21. }
  22. ],
  23. timestamp: new Date(),
  24. footer: {
  25. icon_url: bot.user.avatarURL,
  26. text: "© Example"
  27. }
  28. }
  29. });
Advertisement
Add Comment
Please, Sign In to add comment