Socket
Book a DemoInstallSign in
Socket

djs-tickets

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

djs-tickets

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

5.2.1
latest
Source
npmnpm
Version published
Weekly downloads
65
622.22%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm i djs-tickets

Delcaration

const ts = require('djs-tickets')

Initialising (Mandatory)

ts.start(Client,Embed(optional))     
  • Client: (Object) is the Client object of the bot, which is required for the ticket system to work.
  • Embed: (DiscordJS-Embed) is the embed which you want to be sent in the ticket channel when ticket is opened.

Setup Ticket

ts.setup(Message,ChannelID,Embed(optional))
  • 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
  • Embed: (DiscordJS-Embed) is the embed which you want people to react to in order to open the ticket.

Closing Ticket

ts.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, you don't need to add a manual check yourself :)

Support

Feel free to ask for support in Discord Server

Keywords

discord ticket

FAQs

Package last updated on 01 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.