Discord ticket system bot in javascript
programming language, the messages are in english, but if you
want to you can change the messages any time
This is a source code
You will need your bot token, guild id and client id
The .env file put the bot token and the handelCommands.js file (src/functions/handelCommands.js) put the guild id and client id.
You can add reasons if you want to. There is three default reason but you can add more if you want to. (The categories: partner, help/bug, membership registration)
Its not nessesarry but you also can add the openTicketCategory. It means if someone open a ticket it will go to a category. For this in src/events/createTicket.js will be a
ticketsOpenCategory const and put the category id and its done!
After someone choosed the ticket reason the bot will send a message with this message "Reason for opening a ticket: <choosen reason>" This is in the code beacuse make the ticket reply more faster than normal.
There is a lock icon, if someone press it the channel will be locked/closed. Another message will appear, a delete ticket button, if someone press it the ticket in 5 second will be deleted.
ANOTHER IMPORTANT STEP!! In the src/events/createTicket.js will be <const admin = "">
in the bracets PUT THE SUPPORT ROLE ID. If you not put there a support role id only administators can see the channel (and thats not that good)
The bot will have a /send-panel <channel> command. Thats mean if someone run this command and put a channel the bot there will send the open ticket panel
And for last one i say, this is a source code
programming language, the messages are in english, but if you
want to you can change the messages any time
This is a source code

You will need your bot token, guild id and client id

The .env file put the bot token and the handelCommands.js file (src/functions/handelCommands.js) put the guild id and client id.
You can add reasons if you want to. There is three default reason but you can add more if you want to. (The categories: partner, help/bug, membership registration)
Its not nessesarry but you also can add the openTicketCategory. It means if someone open a ticket it will go to a category. For this in src/events/createTicket.js will be a
ticketsOpenCategory const and put the category id and its done!
After someone choosed the ticket reason the bot will send a message with this message "Reason for opening a ticket: <choosen reason>" This is in the code beacuse make the ticket reply more faster than normal.
There is a lock icon, if someone press it the channel will be locked/closed. Another message will appear, a delete ticket button, if someone press it the ticket in 5 second will be deleted.
ANOTHER IMPORTANT STEP!! In the src/events/createTicket.js will be <const admin = "">
in the bracets PUT THE SUPPORT ROLE ID. If you not put there a support role id only administators can see the channel (and thats not that good)
The bot will have a /send-panel <channel> command. Thats mean if someone run this command and put a channel the bot there will send the open ticket panel
And for last one i say, this is a source code