Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Credits: Xloxn#4050
- ⚠️ Don’t Repost Without Credit
- 1st Command:
- Trigger: (prefix)embedbuilder
- Scripting Language: BDscript 2
- ______________________________________
- $nomention
- $var[x;❌]
- $c[// Credits: Xloxn#4050]
- $c[// Don’t Repost Without Credit]
- $c[// Make sure to enable BDscript2]
- $if[$checkUserPerms[$authorID;managemessages]==false]
- $reply
- $addField[$var[x] Missing Permissons!;Only users with **Manage Messages** permissson can access]
- $color[#eb4346]
- $addTimestamp
- $else
- $textSplit[$date;-]
- $color[#2f3136]
- $title[🏡 Embed Builder]
- $description[
- • Start by clicking the “Create Embed”
- Button, suggest you read the “More Info” field
- before continuing]
- $addField[More Info?;
- • You can keep inputs empty though
- you should have atleast one that isn’t,
- otherwise nothing will send
- • If you accidentally exit without
- submiting you could always go back]
- $footer[© $username[$botID] Development $splitText[2]/$day/$year]
- $deletecommand
- $addButton[no;embed-$authorID;Create Embed;secondary;no;🎨]
- $addButton[no;Delete-$authorID;Delete Message;secondary;no;🗑]
- $endif
- ______________________________________
- 2nd Command
- Trigger: $onInteraction
- Scripting Language: BDscript 2
- ______________________________________
- $nomention
- $var[check;✅]
- $var[x;❌]
- $c[// Credits: Xloxn#4050]
- $c[// Don’t Repost Without Credit]
- $c[// Make sure to enable BDscript2]
- $if[$customID==embed-$authorID]
- $newModal[embedbuilder;Embed Builder]
- $addTextInput[Title;short;Title;;256;yes;;The embed’s title.]
- $addTextInput[Description;paragraph;Description;;4000;yes;;The embed’s description]
- $addTextInput[Image;paragraph;Image;;4000;no;;The embed’s large image, must be a valid link.]
- $addTextInput[Footer;short;Footer;5;2048;no;;The embed’s footer.]
- $addTextInput[Color;short;Color;0;6;no;;The embed’s color, must be a valid hex]
- $endif
- $if[$customID==embedbuilder]
- $if[$and[$input[Color]!=;$isValidHex[$input[Color]]==false]==true]
- $ephemeral
- $addField[$var[x] Action Denied!;Provide a valid hex color]
- $color[#eb4346]
- $else
- $sendEmbedMessage[$channelID;;$input[Title];;$input[Description];$input[Color];;;$input[Footer];;;$input[Image];;]
- $ephemeral
- $addField[$var[check] Successful Operation!;Embeded message successfully sent]
- $color[#2f3136]
- $addTimestamp
- $if[$checkUserPerms[$botID;managemessages]==true]
- $deleteMessage[$channelID;$messageID]
- $else
- $endif
- $endif
- $endif
- $if[$customID==Delete-$authorID]
- $if[$checkUserPerms[$botID;managemessages]==true]
- $deleteMessage[$channelID;$messageID]
- $else
- $endif
- $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement