An easy-to-use npm package that allows you to add ticket system to your discord bot
npm i djs-tickets
const ts = require('djs-tickets')
ts.start(Client,Embed(optional))
ts.setup(Message,ChannelID,Embed(optional))
ts.close(Message,Transcript)
⚠️ This function will only work in a ticket channel, you don't need to add a manual check yourself :)
client
The Client object of the bot. (Discord.Client) - RequiredMessageEmbed
The MessageEmbed object to be used for the ticket. (Discord.MessageEmbed) - OptionalMessageObject
The Message Object of the message to be used for the ticket. (Discord.Message) - RequiredChannelID
The ID of the channel to be used for the ticket. (String) - RequiredEmbed
The MessageEmbed object to be used for the ticket. (Discord.MessageEmbed) - Optionalmessage
The Message Object of the message to be used for the ticket. (Discord.Message) - Requiredtranscript
The Boolean value to be used for the transcript. (Boolean) - RequiredFeel free to ask for support in Discord Server