An easy to setup ticket system discord bot for Djs v12/v13, works for unlimited servers
npm install djs-ticketstxt
npm i djs-tickets
`Delcaration
`js
const ts = require('djs-tickets')
`Initialising (Mandatory)
`js
ts.start(Client,Embed(optional))
`
- Client: (Object) is the Client object of the bot, which is required for the ticket system to work.
- Embed: (DiscordJS-Embed) is the embed which you want to be sent in the ticket channel when ticket is opened.
Setup Ticket
`js
ts.setup(Message,ChannelID,Embed(optional))
`
- Message: (Object) is the object provided in client.on('messageCreate') event, if you want to use with slash command, you can provide Interaction which is provided in client.on('InteractionCreate') event in Djs v13.
- ChannelID: (String) is the channelID where you want bot to send the message to which people can react to and open a ticket
- Embed: (DiscordJS-Embed) is the embed which you want people to react to in order to open the ticket.Closing Ticket
`js
ts.close(Message,Transcript)
``⚠️ This function will only work in a ticket channel, you don't need to add a manual check yourself :)