npm i djs-tickets
const ts = require('djs-tickets')
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.
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.
ts.close(Message,Transcript)
- 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.
- Transcript: (Boolean) If you want bot to send transcript, set this parameter as true.
client
The Client object of the bot. (Discord.Client) - RequiredMessageEmbed
The MessageEmbed object to be used for the ticket. (Discord.MessageEmbed) - Optional
MessageObject
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) - Optional
message
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) - Required
Feel free to ask for support in Discord Server