# Getting started

![](https://top.gg/api/widget/955374125461934100.svg)

## Installation

To install the bot you first need to invite the bot!

```javascript
https://discord.com/api/oauth2/authorize?client_id=955374125461934100&permissions=326685961232&scope=bot%20applications.commands
```

{% embed url="<https://discord.com/api/oauth2/authorize?client_id=955374125461934100&permissions=326685961232&scope=bot+applications.commands>" %}
Invite Bot
{% endembed %}

## Setup

To setup the bot you only need to use one command that will create the Support Category for the Bot!

```javascript
/setup <Supporter>
```

{% tabs %}
{% tab title="<Supporter>" %}

<table><thead><tr><th width="150">Type</th><th width="362.75427207558863">Description</th><th>Required</th></tr></thead><tbody><tr><td>Role</td><td>The Supporter Role that should be able to Edit Tickets</td><td>true</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

{% hint style="warning" %}
You need the `ADMINISTRATOR` permission for this Command!
{% endhint %}

## Usage of Bot

To use the bot it is very simple.\
With the **/ticket** command you can create a new Ticket!

```javascript
/ticket <Reason>
```

{% tabs %}
{% tab title="<Reason>" %}

<table><thead><tr><th width="150">Type</th><th width="362.75427207558863">Description</th><th>Required</th></tr></thead><tbody><tr><td>String</td><td>The Reason of your Ticket!</td><td>true</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

It will create a new User Collection if there isn't anyone already for the user!

&#x20;

![](https://3377761191-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FerlQDQmbUbWYjtbNvGH1%2Fuploads%2FObe1nUGypoqiokLv58b0%2Fimage.png?alt=media\&token=dd73a741-af0a-445d-a1f6-cbddb063ef6a)

And in this Channel for the User it creates the Ticket as a Thread!

![](https://3377761191-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FerlQDQmbUbWYjtbNvGH1%2Fuploads%2FyYoBOyx5Uj2WfT70jE0w%2Fimage.png?alt=media\&token=9f125e06-7775-444e-964e-b60f062d9975)

![](https://3377761191-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FerlQDQmbUbWYjtbNvGH1%2Fuploads%2FjKCUBJKDUNEYld5zNytV%2Fimage.png?alt=media\&token=106cf855-239a-4ad6-9e4a-68d1a8cf7ebc)

To close a Ticket you use the following command!

{% hint style="warning" %}
You need the `MANAGE_THREADS` permission for this command
{% endhint %}

```javascript
/resolve <reason> <owner> <locked>
```

{% tabs %}
{% tab title="<reason>" %}

<table><thead><tr><th width="150">Type</th><th width="362.75427207558863">Description</th><th>Required</th></tr></thead><tbody><tr><td>String</td><td>The Reason of the closure! </td><td>false</td></tr></tbody></table>

{% hint style="info" %}
If you don't provide a reason it will choose the default reason **"Ticket Closed!"**
{% endhint %}
{% endtab %}

{% tab title="<owner>" %}

<table><thead><tr><th width="150">Type</th><th width="362.75427207558863">Description</th><th>Required</th></tr></thead><tbody><tr><td>Member</td><td>The member who openend the ticket!</td><td>false</td></tr></tbody></table>

{% hint style="info" %}
If the bot isn't able to cache the owner of the ticket you can provide him!
{% endhint %}
{% endtab %}

{% tab title="<locked>" %}

<table><thead><tr><th width="150">Type</th><th width="362.75427207558863">Description</th><th>Required</th></tr></thead><tbody><tr><td>String</td><td>If you want that the User can reopen the ticket after closure!</td><td>false</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

## Delete User archive!

To delete the User achrive you need to use the following command!

{% hint style="warning" %}
You need the `MANAGE_THREADS` permission for this command
{% endhint %}

```javascript
/delete
```

{% hint style="danger" %}
Only avaiable in ***Text-Channels*** in the ***Support*** Categorie!
{% endhint %}

You need to use that command in the **Text-Channel** of the **User** under the **Support** categorie!\
After **5s** it will delete the Channel and with that every Ticket the user created.\
\
This is helpful if you ban someone and you don't wan't to store his tickets!
