Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. async fn (msg) {
  2. let usertooof = msg.mentions.members.first()
  3. if (!usertooof) return msg.channel.send("Can't find that user!")
  4. if (!msg.member.hasPermission("BAN_MEMBERS")) return msg.channel.send("Not Allowed to OOF!")
  5.  
  6. msg.usertooof.send({embed: {
  7. "title": "title ~~(did you know you can have markdown here too?)~~",
  8. "description": "this supports [named links](https://discordapp.com) on top of the previously shown subset of markdown. ```\nyes, even code blocks```",
  9. "url": "https://discordapp.com",
  10. "color": 314481,
  11. "timestamp": "2018-07-17T03:13:23.462Z",
  12. "footer": {
  13. "icon_url": "https://cdn.discordapp.com/embed/avatars/0.png",
  14. "text": "footer text"
  15. },
  16. "thumbnail": {
  17. "url": "https://cdn.discordapp.com/embed/avatars/0.png"
  18. },
  19. "image": {
  20. "url": "https://cdn.discordapp.com/embed/avatars/0.png"
  21. },
  22. "author": {
  23. "name": "author name",
  24. "url": "https://discordapp.com",
  25. "icon_url": "https://cdn.discordapp.com/embed/avatars/0.png"
  26. },
  27. "fields": [
  28. {
  29. "name": "🤔",
  30. "value": "some of these properties have certain limits..."
  31. },
  32. {
  33. "name": "😱",
  34. "value": "try exceeding some of them!"
  35. },
  36. {
  37. "name": "🙄",
  38. "value": "an informative error should show up, and this view will remain as-is until all issues are fixed"
  39. },
  40. {
  41. "name": "<:thonkang:219069250692841473>",
  42. "value": "these last two",
  43. "inline": true
  44. },
  45. {
  46. "name": "<:thonkang:219069250692841473>",
  47. "value": "are inline fields",
  48. "inline": true
  49. }
  50. ]
  51. }
  52. }
  53.  
  54. )}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement