dc-tickets
v1.0.1
Published
A simple tool to create tickets
Downloads
4
Readme
dc-tickets
A simple tool to create tickets
Installation
npm i dc-tickets
Usage
const discord = require("discord.js")
const client = new discord.Client()
const tickets = require("dc-tickets")
new tickets(client, {
guild: "832961356155977738",
category: "832961356155977741",
logs: "832964699673985035",
role: "832964863033999401",
openCommand: "&create",
closeCommand: "&close",
ticketMessage: "Hey <@%USER_ID%>, a <@&832964863033999401> will help you soon!", // %USER_ID% will be replaced with the userid who opened the ticket
message: "832975946310746113",
emoji: "📰"
})
client.on("ready", () => {
client.channels.cache.get("832961356155977742").messages.fetch("832975946310746113")
})
client.login("BOT_TOKEN")
Credits
Made by Flamex