2.1.0 • Published 4 years ago
djs-ticket-esmile v2.1.0
Installation
npm i djs-ticket-esmileDelcaration
const tk = require('djs-ticket-esmile')Initialising (Mandatory)
tk.start(client)Setup Ticket
tk.setup(Message,ChannelID)- 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, more customisation soon...
Closing Ticket
tk.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
2.1.0
4 years ago