discordticketcreator.js
v3.0.1
Published
A module for discord.js to create tickets
Downloads
5
Readme
Instaling
npm install discordticketcreator.js
Starting
Create TicketManager for create tickets
const { TicketManager } = require('discordticketcreator.js');
const ticketManager = new TicketManager(client, {
parentId: '1002624924986380410', // category channel to tickets (optional)
message: {
content: "testing tickets"
}, // message to send channel ticket (optional)
response: "Ticket closed!" // message on close ticket (optional)
});
Creating a ticket
const ticket = ticketManager.create(message.guild, message.member);
ticket.on("created", ticket => {
console.log(`created a ticket by ${ticket.memberId}`);
});