Advertisement
The_Leader

Embed By TheLeader

Apr 30th, 2020
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.02 KB | None | 0 0
  1. client.on("message", message => {
  2. //ᴿᶻ The Leader#0187
  3. if (!message.channel.guild) return;
  4. if (message.content === prefix + "embed") {
  5. //ᴿᶻ The Leader#0187
  6. if (!message.member.hasPermission("MANAGE_ROLES"))
  7. return message.channel.send(`You don't have permission`);
  8. //ᴿᶻ The Leader#0187
  9. let sk = "skip"
  10. //ᴿᶻ The Leader#0187
  11. message.channel.send(`**Please write the color** `);//ᴿᶻ The Leader#0187
  12. let filter = m => m.author.id === message.author.id;
  13. var color = ``;//ᴿᶻ The Leader#0187
  14. let sugsa2 = message.channel
  15. .awaitMessages(filter, { max: 1, time: 60000 })
  16. .then(co => {
  17. if(co.first().content == sk) color = ``
  18. else color = co.first().content;
  19. //ᴿᶻ The Leader#0187
  20. message.channel.bulkDelete(1);
  21. //ᴿᶻ The Leader#0187
  22. message.channel.send(`**Please write the title** `);//ᴿᶻ The Leader#0187
  23. let filter = m => m.author.id === message.author.id;//ᴿᶻ The Leader#0187
  24. var title = ``;
  25. let sugsa2 = message.channel
  26. .awaitMessages(filter, { max: 1, time: 60000 })
  27. .then(co => {
  28. if(co.first().content == sk) title = ``
  29. else title = co.first().content;
  30. //ᴿᶻ The Leader#0187
  31. message.channel.bulkDelete(1);
  32. //ᴿᶻ The Leader#0187
  33. message.channel.send(`**Please write the description** `);//ᴿᶻ The Leader#0187
  34. let filter = m => m.author.id === message.author.id;//ᴿᶻ The Leader#0187
  35. var tt = ``;//ᴿᶻ The Leader#0187
  36. let sugsa2 = message.channel
  37. .awaitMessages(filter, { max: 1, time: 60000 })
  38. .then(co => {
  39. if(co.first().content == sk) tt = ``
  40. else tt = co.first().content;
  41. //ᴿᶻ The Leader#0187
  42. message.channel.bulkDelete(1);
  43. //ᴿᶻ The Leader#0187
  44. message.channel.send(`**Please write the Footer**`);//ᴿᶻ The Leader#0187
  45. let filter = m => m.author.id === message.author.id;//ᴿᶻ The Leader#0187
  46. var foo = ``;
  47. let sugsa2 = message.channel
  48. .awaitMessages(filter, { max: 1, time: 60000 })
  49. .then(co => {
  50. if(co.first().content == sk) foo = ``
  51. else foo = co.first().content;
  52. //ᴿᶻ The Leader#0187
  53. message.channel.bulkDelete(1);
  54. //ᴿᶻ The Leader#0187
  55. message.channel.send(`**Please write the logo URL**`);//ᴿᶻ The Leader#0187
  56. let filter = m => m.author.id === message.author.id;
  57. var Thum = ``;
  58. let sugsa2 = message.channel
  59. .awaitMessages(filter, { max: 1, time: 60000 })
  60. .then(co => {
  61. if(co.first().content == sk) Thum = ``
  62. else Thum = co.first().content;
  63. //ᴿᶻ The Leader#0187
  64. message.channel.bulkDelete(1);
  65. //ᴿᶻ The Leader#0187
  66. message.channel.send(`**Please write the Image URL**`);
  67. let filter = m => m.author.id === message.author.id;
  68. var image = ``;//ᴿᶻ The Leader#0187
  69. let sugsa2 = message.channel
  70. .awaitMessages(filter, { max: 1, time: 60000 })
  71. .then(co => {
  72. if(co.first().content == sk) image = ``
  73. else image = co.first().content;
  74. //ᴿᶻ The Leader#0187
  75. message.channel.bulkDelete(1);
  76. //ᴿᶻ The Leader#0187
  77. message.channel.send("")
  78. message.channel.bulkDelete(6);
  79. let embed = new Discord.RichEmbed()//.setColor(color).setTitle(title).setDescription(tt).setFooter(foo).setTimestamp()/*.setAuthor().setImg().setThum*/;
  80. //ᴿᶻ The Leader#0187
  81. if(color != ``) embed.setColor(color)
  82. if(title != ``) embed.setTitle(title)
  83. if(tt != ``) embed.setDescription(tt)
  84. if(foo != ``) embed.setFooter(foo)
  85. if(image != ``) embed.setImage(image)
  86. if(Thum != ``) embed.setThumbnail(Thum)
  87. //ᴿᶻ The Leader#0187
  88.  
  89. message.channel.send(embed).catch(shady => {
  90. console.log("`Error`: " + shady);
  91. message.channel.send("`Error`:" + shady);
  92. });
  93. }
  94. )//ᴿᶻ The Leader#0187
  95.  
  96. });
  97. }//ᴿᶻ The Leader#0187
  98. );
  99. }
  100. );
  101. }
  102. )})}});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement