> For the complete documentation index, see [llms.txt](https://tyrone5693.gitbook.io/falls.djs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tyrone5693.gitbook.io/falls.djs/overview/documentation/ticket-manager.md).

# Ticket Manager

### Functions

```javascript
// You can use ticket manager with interactions or messages.
type = message/interaction

// Send panels to specified channel
// you can edit embed
- Send(type, { channel, embed: { 
        title,
        description,
        color,
        thumbnail
        } 
})

// Creates category and channel for tickets
- AutoSend(type)

// Caches all tickets and deletes all
- BulkDelete(type) 

// Module checks only if author owns the ticket you need to check on your own if admin or else
// Add or remove participant
- AddParticipants(type, { member })

- RemoveParticipants(type, { member })
```

## Detailed Usage

```javascript
const TicketManager = client.fallsDjsManager.TicketManager;

// Send()
TicketManager.Send(type, {
    channel: type.channel, // required
    embed: { // Defaults
        title: `${type.guild.name} Support Area`
        description,
        color,
        thumbnail
        }
})

// AutoSend()
TicketManager.AutoSend(type)

// BulkDelete()
TicketManager.BulkDelete(type)

// Get Member
let member = msg.mentions.members.first() || i.options.getMember();

// AddParticipant()
TicketManager.AddParticipant(type, {
    member: member
});       
 
// RemoveParticipant()
TicketManager.RemoveParticipant(msg, {
    member: member
})
```
