issack_desnuts

Ticket BDFD

Oct 10th, 2023 (edited)
1,005
1
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 1 0
  1. Variables needed:
  2. Keep the value empty
  3. ticketnotclaim :
  4.  
  5. Trigger:
  6. (prefix)ticket
  7. CODE:
  8.  
  9. $title[Ticket]
  10. $description[If you need further assistance, please click the "create ticket" button below to get help from our staff.]
  11. $footer[Click the button below to create a ticket!]
  12. $addButton[no;ticket;Create Ticket;primary;no;🎫]
  13. $color[$random[1;999999]]
  14. $thumbnail[https://i.imgur.com/IlZ2w9w.png]
  15.  
  16. Trigger:
  17. $onInteraction[ticket]
  18. CODE 2:
  19. $ephemeral
  20. $description[Created ticket :white_check_mark:]
  21. $newTicket[Tickets;No subject was provided.;Thanks for making a ticket. Please explain your issue in detail so we can help. User: <@$authorID>;;Failed to make ticket!]
  22. $editChannelPerms[$categoryID[Tickets];$findRole[@everyone];-readmessages;-sendmessages;-readmessagehistory]
  23. $setServerVar[ticketnotclaim;true]
  24. $color[$random[1;999999]]
  25. $removeButtons
  26.  
  27. Trigger:
  28. (prefix)panel
  29. CODE 3:
  30.  
  31. $onlyIf[$isTicket[]==true;This command can only be used in a ticket!]
  32. $title[Panel]
  33. $description[Click one of the button's!]
  34. $footer[This message will be deleted in 10s!]
  35. $deleteIn[10s]
  36. $addButton[no;claimticket;Claim Ticket;primary;no]
  37. $addButton[no;delete;Delete;danger;no]
  38. $if[$getServerVar[ticketnotclaim]==false]
  39. $addButton[no;unclaim;Unclaim Ticket;primary;no]
  40. $removeComponent[claimticket]
  41. $endif
  42. $color[$random[1;9999999]]
  43.  
  44. Trigger:
  45. $onInteraction[claimticket]
  46. CODE 4:
  47.  
  48. $if[$getServerVar[ticketnotclaim]==true]
  49. $ephemeral
  50. $onlyPerms[managechannels;You must have `MANAGE_CHANNELS` to use this command]
  51. $editChannelPerms[$channelID;$findRole[@everyone];-sendmessages;+readmessagehistory;-readmessages;-attachfiles]
  52. $editChannelPerms[$channelID;$splitText[2];+sendmessages;+readmessagehistory;+readmessages;+attachfiles]
  53. $editChannelPerms[$channelID;$findRole[@everyone];+sendmessages;+readmessagehistory;-readmessages;+attachfiles]
  54. $title[Claimed]
  55. $description[Ticket Claimed!]
  56. $color[$random[1;99999]]
  57. $setServerVar[ticketnotclaim;false]
  58. $removeButtons
  59. $endif
  60.  
  61. Trigger:
  62. $onInteraction[unclaim]
  63. Code 5:
  64.  
  65. $ephemeral
  66. $onlyPerms[managechannels;You must have `MANAGE_CHANNELS` to use this command]
  67. $title[Unclaimed]
  68. $description[You unclaimed the ticket!]
  69. $editChannelPerms[$channelID;$findRole[@everyone];-sendmessages;-readmessagehistory;-readmessages;-attachfiles]
  70. $setServerVar[ticketnotclaim;true]
  71. $color[$random[1;999999]]
  72. $removeButtons
  73.  
  74. Trigger:
  75. $onInteraction[delete]
  76. Code 6:
  77.  
  78. $deleteChannels[$channelID]
  79. $c[Credit's to pro_iceman]
Advertisement
Comments
Add Comment
Please, Sign In to add comment