djs-ticket-esmile

An easy to setup ticket system discord bot for Djs v12/v13, works for unlimited servers

Usage no npm install needed!

<script type="module">
  import djsTicketEsmile from 'https://cdn.skypack.dev/djs-ticket-esmile';
</script>

README

Installation

npm i djs-ticket-esmile

Delcaration

const tk = require('djs-ticket-esmile')

Initialising (Mandatory)

tk.start(client)

Setup Ticket

tk.setup(Message,ChannelID)
  • 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, more customisation soon...

Closing Ticket

tk.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.

⚠️ This function will only work in a ticket channel