Advertisement
rajat_cj

result

Mar 24th, 2023 (edited)
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. $nomention
  2. $onlyIf[$checkContains[$customID;accept;decline;userinfo]==true;]
  3. $if[$checkUserPerms[$authorID;manageserver]==true]
  4.  
  5. $textSplit[$customID;β€’]
  6. $var[app;$splitText[2]]
  7.  
  8. $if[$splitText[1]==accept]
  9. $title[$getEmbedData[$channelID;$messageID;1;title]]
  10. $description[$getEmbedData[$channelID;$messageID;1;description]]
  11. $thumbnail[$userAvatar[$splitText[3]];2]
  12. $title[$getEmbedData[$channelID;$messageID;2;title];2]
  13. $description[$replaceText[$getEmbedData[$channelID;$messageID;2;description];🟠 Pending;🟒 Accepted]
  14. Accepted By: <@$authorID>;2]
  15. $color[00ff00]
  16. $color[00ff00;2]
  17. $removeButtons
  18. $addButton[no;ac;Application Accepted;success;yes;;]
  19.  
  20. $sendEmbedMessage[$dmChannelID[$splitText[3]];;**Your Application Was Accepted!**;;Congratulations! we decided to select you.;ff8888;;;$serverName[$guildID] β€’ $username;;;;no;]
  21.  
  22. $try
  23. $roleGrant[$splitText[3];+$getServerVar[app$var[app]role]]
  24. $endtry
  25. $setServerVar[app$var[app]16;$replaceText[$getServerVar[app$var[app]16];$splitText[3]β€’;]]
  26.  
  27. $endif
  28.  
  29. $if[$splitText[1]==decline]
  30. $title[$getEmbedData[$channelID;$messageID;1;title]]
  31. $description[$getEmbedData[$channelID;$messageID;1;description]]
  32. $title[$getEmbedData[$channelID;$messageID;2;title];2]
  33. $thumbnail[$userAvatar[$splitText[3]];2]
  34. $description[$replaceText[$getEmbedData[$channelID;$messageID;2;description];🟠 Pending;πŸ”΄ Declined]
  35. Declined By: <@$authorID>;2]
  36. $color[ff0000]
  37. $color[ff0000;2]
  38. $removeButtons
  39. $addButton[no;ac;Application Declined;danger;yes;;]
  40.  
  41. $sendEmbedMessage[$dmChannelID[$splitText[3]];;**Your Application Was Rejected!**;;Sorry! we decided to not to select you.;ff8888;;;$serverName[$guildID] β€’ $username;;;;no;]
  42. $try
  43. $roleGrant[$splitText[3];+$getServerVar[app$var[app]derole]]
  44. $endtry
  45. $setServerVar[app$var[app]16;$replaceText[$getServerVar[app$var[app]16];$splitText[3]β€’;]]
  46.  
  47. $endif
  48.  
  49. $else
  50. $ephemeral
  51. $removeButtons
  52. ❌ Only members with **Manage Server** permission can click this button!
  53. $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement