ticket.easy

Ticket.Easy, the best package to create a full tickets on discord.

Usage no npm install needed!

<script type="module">
  import ticketEasy from 'https://cdn.skypack.dev/ticket.easy';
</script>

README

Ticket.easy

The best package to create a ticket system for your discord bot

Requirements:

  • Discord.JS
  • Discord.JS version higher than 12.x.x

To setup:

const discord = require("discord.js")
let ticketeasy = require("ticket.easy")
const ticket = new ticketeasy()

Ticket / Create Command:

ticket.createTicket({
      message: message, //The way you defined message in the message event
      supportRole: "Role", //Support role, can be an ID and the role name
      ticketMessage: `${message.author} created a ticket yay`, //The message it will send in the ticket || Optional
      ticketTopic: `${message.author.id}`, //The channel topic || Optional
      ticketParent: "", //Must be a category, can be an ID and a name || Optional
      ticketName: "", //This will be the ticket name || Optional
    })

Close ticket command:

ticket.claimTicket({
      message: message,  //The way you defined message in the message event
      supportRole: "User", //Support role, can be an ID and the role name
    })

Add member command:

ticket.addMember({
      message: message, //The way you defined message in the message event
      user: message.mentions.members.first() //The user that will be added to the ticket
    })

Remove member command:

ticket.removeMember({
      message: message, //The way you defined message in the message event
      user: message.mentions.members.first() //User to be removed from the ticket
    })

Claim ticket command:

ticket.claimTicket({
      message: message,  //The way you defined message in the message event
      supportRole: "User", //Support role, can be an ID and the role name
    })

Unclaim ticket command:

ticket.unclaimTicket({
      message: message,  //The way you defined message in the message event
      supportRole: "User", //Support role, can be an ID and the role name
    })

Rename ticket command:

ticket.renameTicket({
      message: message,  //The way you defined message in the message event
      name: "newname" //The name you will rename it to    
    })