Advertisement
Brucord-Xloxn1296

Embed Builder | Credits: Xloxn#4050

Jun 19th, 2022 (edited)
1,299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. Credits: Xloxn#4050
  2. ⚠️ Don’t Repost Without Credit
  3.  
  4. 1st Command:
  5. Trigger: (prefix)embedbuilder
  6. Scripting Language: BDscript 2
  7. ______________________________________
  8.  
  9. $nomention
  10. $var[x;❌]
  11.  
  12. $c[// Credits: Xloxn#4050]
  13. $c[// Don’t Repost Without Credit]
  14. $c[// Make sure to enable BDscript2]
  15.  
  16.  
  17. $if[$checkUserPerms[$authorID;managemessages]==false]
  18. $reply
  19. $addField[$var[x] Missing Permissons!;Only users with **Manage Messages** permissson can access]
  20. $color[#eb4346]
  21. $addTimestamp
  22. $else
  23.  
  24. $textSplit[$date;-]
  25. $color[#2f3136]
  26.  
  27. $title[🏡 Embed Builder]
  28. $description[
  29. • Start by clicking the “Create Embed”
  30. Button, suggest you read the “More Info” field
  31. before continuing]
  32. $addField[More Info?;
  33. • You can keep inputs empty though
  34. you should have atleast one that isn’t,
  35. otherwise nothing will send
  36. • If you accidentally exit without
  37. submiting you could always go back]
  38. $footer[© $username[$botID] Development $splitText[2]/$day/$year]
  39. $deletecommand
  40. $addButton[no;embed-$authorID;Create Embed;secondary;no;🎨]
  41. $addButton[no;Delete-$authorID;Delete Message;secondary;no;🗑]
  42. $endif
  43.  
  44.  
  45. ______________________________________
  46.  
  47. 2nd Command
  48. Trigger: $onInteraction
  49. Scripting Language: BDscript 2
  50. ______________________________________
  51.  
  52. $nomention
  53. $var[check;✅]
  54. $var[x;❌]
  55.  
  56. $c[// Credits: Xloxn#4050]
  57. $c[// Don’t Repost Without Credit]
  58. $c[// Make sure to enable BDscript2]
  59.  
  60. $if[$customID==embed-$authorID]
  61. $newModal[embedbuilder;Embed Builder]
  62. $addTextInput[Title;short;Title;;256;yes;;The embed’s title.]
  63. $addTextInput[Description;paragraph;Description;;4000;yes;;The embed’s description]
  64. $addTextInput[Image;paragraph;Image;;4000;no;;The embed’s large image, must be a valid link.]
  65. $addTextInput[Footer;short;Footer;5;2048;no;;The embed’s footer.]
  66. $addTextInput[Color;short;Color;0;6;no;;The embed’s color, must be a valid hex]
  67. $endif
  68.  
  69.  
  70. $if[$customID==embedbuilder]
  71. $if[$and[$input[Color]!=;$isValidHex[$input[Color]]==false]==true]
  72. $ephemeral
  73. $addField[$var[x] Action Denied!;Provide a valid hex color]
  74. $color[#eb4346]
  75. $else
  76.  
  77. $sendEmbedMessage[$channelID;;$input[Title];;$input[Description];$input[Color];;;$input[Footer];;;$input[Image];;]
  78.  
  79. $ephemeral
  80. $addField[$var[check] Successful Operation!;Embeded message successfully sent]
  81. $color[#2f3136]
  82. $addTimestamp
  83.  
  84. $if[$checkUserPerms[$botID;managemessages]==true]
  85. $deleteMessage[$channelID;$messageID]
  86. $else
  87. $endif
  88.  
  89. $endif
  90. $endif
  91.  
  92. $if[$customID==Delete-$authorID]
  93. $if[$checkUserPerms[$botID;managemessages]==true]
  94. $deleteMessage[$channelID;$messageID]
  95. $else
  96. $endif
  97. $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement