Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Variables needed:
- Keep the value empty
- ticketnotclaim :
- Trigger:
- (prefix)ticket
- CODE:
- $title[Ticket]
- $description[If you need further assistance, please click the "create ticket" button below to get help from our staff.]
- $footer[Click the button below to create a ticket!]
- $addButton[no;ticket;Create Ticket;primary;no;🎫]
- $color[$random[1;999999]]
- $thumbnail[https://i.imgur.com/IlZ2w9w.png]
- Trigger:
- $onInteraction[ticket]
- CODE 2:
- $ephemeral
- $description[Created ticket :white_check_mark:]
- $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!]
- $editChannelPerms[$categoryID[Tickets];$findRole[@everyone];-readmessages;-sendmessages;-readmessagehistory]
- $setServerVar[ticketnotclaim;true]
- $color[$random[1;999999]]
- $removeButtons
- Trigger:
- (prefix)panel
- CODE 3:
- $onlyIf[$isTicket[]==true;This command can only be used in a ticket!]
- $title[Panel]
- $description[Click one of the button's!]
- $footer[This message will be deleted in 10s!]
- $deleteIn[10s]
- $addButton[no;claimticket;Claim Ticket;primary;no]
- $addButton[no;delete;Delete;danger;no]
- $if[$getServerVar[ticketnotclaim]==false]
- $addButton[no;unclaim;Unclaim Ticket;primary;no]
- $removeComponent[claimticket]
- $endif
- $color[$random[1;9999999]]
- Trigger:
- $onInteraction[claimticket]
- CODE 4:
- $if[$getServerVar[ticketnotclaim]==true]
- $ephemeral
- $onlyPerms[managechannels;You must have `MANAGE_CHANNELS` to use this command]
- $editChannelPerms[$channelID;$findRole[@everyone];-sendmessages;+readmessagehistory;-readmessages;-attachfiles]
- $editChannelPerms[$channelID;$splitText[2];+sendmessages;+readmessagehistory;+readmessages;+attachfiles]
- $editChannelPerms[$channelID;$findRole[@everyone];+sendmessages;+readmessagehistory;-readmessages;+attachfiles]
- $title[Claimed]
- $description[Ticket Claimed!]
- $color[$random[1;99999]]
- $setServerVar[ticketnotclaim;false]
- $removeButtons
- $endif
- Trigger:
- $onInteraction[unclaim]
- Code 5:
- $ephemeral
- $onlyPerms[managechannels;You must have `MANAGE_CHANNELS` to use this command]
- $title[Unclaimed]
- $description[You unclaimed the ticket!]
- $editChannelPerms[$channelID;$findRole[@everyone];-sendmessages;-readmessagehistory;-readmessages;-attachfiles]
- $setServerVar[ticketnotclaim;true]
- $color[$random[1;999999]]
- $removeButtons
- Trigger:
- $onInteraction[delete]
- Code 6:
- $deleteChannels[$channelID]
- $c[Credit's to pro_iceman]
Advertisement
Comments
-
- If you find any errors let me know!
-
- you could modify so that when you open a ticket the panel opens directly
Add Comment
Please, Sign In to add comment