5.2.1 • Published 3 years ago
djs-tickets v5.2.1
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
5.2.1
3 years ago
5.2.0
3 years ago
5.1.2
4 years ago
5.1.1
4 years ago
5.1.0
4 years ago
5.0.1
4 years ago
5.0.0
5 years ago
4.0.1
5 years ago
4.0.2
5 years ago
4.0.0
5 years ago
3.0.18
5 years ago
3.0.19
5 years ago
3.5.0
5 years ago
3.0.16
5 years ago
3.0.15
5 years ago
3.0.14
5 years ago
3.0.13
5 years ago
3.0.12
5 years ago
3.0.11
5 years ago
3.0.10
5 years ago
3.0.9
5 years ago
3.0.8
5 years ago
3.0.7
5 years ago
3.0.6
5 years ago
3.0.5
5 years ago
3.0.4
5 years ago
3.0.3
5 years ago
3.0.2
5 years ago
3.0.1
5 years ago
3.0.0
5 years ago
2.0.2
5 years ago
2.0.1
5 years ago
2.0.0
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago