# 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
})
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tyrone5693.gitbook.io/falls.djs/overview/documentation/ticket-manager.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
