1.0.8 • Published 3 years ago

cdtickets v1.0.8

Weekly downloads
326
License
MIT
Repository
github
Last release
3 years ago

Contents

Installation

npm i cdtickets --save

Setup

// Top of the Command File
const CDTickets = require('cdtickets')
const ticket = new CDTickets()

Create a ticket

ticket.create({
    msg: message,
    name: 'Ticket Name', // Defaults to the ticket owners username
    supportRole: 'Role', // Role Name or ID
    category: 'Category ID', // If no category is set it will just make a channel at the top of the server
    response: 'Response', // This message is sent when they open the ticket - Defaults to "Your ticket has successfully been created in #channel
    reason: 'Reason for opening the ticket', // Defaults to "No reason provided"
    message: 'Message', // This message is sent when the ticket is opened, will also ping the user and the support role
})

Delete a ticket

ticket.delete({
    msg: message
})

Claim a ticket

ticket.claim({
    msg: message,
    supportRole: 'Role' // Role Name or ID
})

Unclaim a ticket

ticket.unclaim({
    msg: message,
    supportRole: 'Role', // Role Name or ID
})

Rename a ticket

ticket.rename({
    msg: message,
    name: 'New Name'
})

Add a member to a ticket

ticket.add({
    msg: message,
    user: 'User' // message.mentions.members.first() || message.guild.members.cache.get(args[argNumber])
})

Remove a member from a ticket

ticket.remove({
    msg: message,
    user: 'User' // message.mentions.members.first() || message.guild.members.cache.get(args[argNumber])
})

Other

If you have any questions, suggestions or need helping setting it up join our Support Server.

1.1.0

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago