Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------------
- Variable: suggchannel
- Value : 0
- -------------
- Code 1 : suggest
- -------------
- $nomention
- $sendMessage[🟢 | **suggest**, *suggestions sent successfully!*]
- $if[$getServerVar[suggchannel]!=]
- $useChannel[$getServerVar[suggchannel]]
- $color[00ff00]
- $title[Suggestion from $username]
- $description[
- **Suggestion:**
- ```ms
- $message[1;msg]
- ```
- **React:**
- 🟢 Yes
- 🟠Why not
- 🔴 No]
- $addReactions[🟢;🟠;🔴]
- $addButton[yes;answer;Answer;primary;no;;]
- $addButton[no;thread;Create Thread;secondary;no;;]
- $else
- $ephemeral
- $description[🔴 | **error**, *there is no suggestion channel defined on the server*]
- $color[00ff00]
- $endif
- -----------
- Code 2 : $onInteraction[theard]
- ------------
- $nomention
- $title[$getEmbedData[$channelID;$messageID;1;title]]
- $description[$getEmbedData[$channelID;$messageID;1;description]]
- $var[id;$startThread[Suggestion Comments;$channelID;$messageID;10080;yes]]
- $removeComponent[$customID]
- --------------
- Code 3 : $onInteraction[answer]
- --------------
- $nomention
- $if[$isAdmin[$authorID]]
- $newModal[ansed@$messageID;Title]
- $addTextInput[ans;paragraph;Answer Here;1;2000;yes;;]
- $else
- $ephemeral
- $color[00ffff]
- $description[🔴 | **error**, *you do not have administrator permissions !*]
- $removeButtons
- $endif
- -----------------
- Code 4 : setchannel
- -------------
- $nomention
- $deletecommand
- $if[$and[$isAdmin[$authorID]==true;$mentionedChannels[1]==]==true]
- $description[🔴 | **error**, *no channel was mentioned.*]
- $color[2F3136]
- $elseif[$and[$isAdmin[$authorID]==true;$mentionedChannels[1]!=]==true]
- $description[*🟢 | suggestions will be posted in <#$mentionedChannels[1]> !*]
- $color[2F3136]
- $setServerVar[suggchannel;$mentionedChannels[1]]
- $endif
- $if[$isAdmin[$authorID]==false]
- $color[2F3136]
- $ephemeral
- $description[🔴 | **error**, *you do not have administrator permissions !*]
- $endif
- ----------------
- Code 5 : $onInteraction
- --------------
- $onlyIf[$checkContains[$customID;ansed]==true;]
- $textSplit[$customID;@]
- $editMessage[$channelID;$splitText[2];;$getEmbedData[$channelID;$splitText[2];1;title];$getEmbedData[$channelID;$splitText[2];1;description]
- **Answered By $username**
- $input[ans];ff8888;]
- $editButton[answer;Answered;primary;yes;;$splitText[2]]
Advertisement
Add Comment
Please, Sign In to add comment