Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------------
- Variable: suggchannel
- Value : 0
- -------------
- Code 1 : suggest
- -------------
- $nomention
- $sendMessage[🟢 | **vorschlagen**, *Vorschläge erfolgreich gesendet!*]
- $if[$getServerVar[suggchannel]!=]
- $useChannel[$getServerVar[suggchannel]]
- $color[00ff00]
- $title[Vorschlag von $username]
- $description[
- **Vorschlag:**
- ```
- $message[1;msg]
- ```
- **Reagiere:**
- 🟢 Ja/dafür
- 🟠Vieleicht/wieso auch nicht
- 🔴 Nein/dagegen]
- $addReactions[🟢;🟠;🔴]
- $addButton[yes;answer;Antworten;primary;no;;]
- $addButton[no;thread;Thread erstell;secondary;no;;]
- $else
- $ephemeral
- $description[🔴 | **Fehler**, *Auf dem Server ist kein Vorschlagskanal definiert*]
- $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;Antwort hier;1;2000;yes;;]
- $else
- $ephemeral
- $color[00ffff]
- $description[🔴 | **Fehler**, *Sie haben keine Administratorrechte !*]
- $removeButtons
- $endif
- -----------------
- Code 4 : setchannel
- -------------
- $nomention
- $deletecommand
- $if[$and[$isAdmin[$authorID]==true;$mentionedChannels[1]==]==true]
- $description[🔴 |**Fehler**, *kein Kanal angegeben.*]
- $color[2F3136]
- $elseif[$and[$isAdmin[$authorID]==true;$mentionedChannels[1]!=]==true]
- $description[*🟢 |Vorschläge werden in gepostet <#$mentionedChannels[1]> !*]
- $color[2F3136]
- $setServerVar[suggchannel;$mentionedChannels[1]]
- $endif
- $if[$isAdmin[$authorID]==false]
- $color[2F3136]
- $ephemeral
- $description[🔴 | **Fehler**, *Sie haben keine Administratorrechte!*]
- $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]
- **Antwort von $username**
- $input[ans];ff8888;]
- $editButton[answer;Answered;primary;yes;;$splitText[2]]
Advertisement
Add Comment
Please, Sign In to add comment