# 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;

![](/files/OhL8kIJ4IoRBtVbtxuOf)

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

![](/files/CSJ9hXfIUMxuNTr3ED54)

![](/files/9ah52D9vgKJGAoFGCNfE)

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!


---

# 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://docs-muffelchat.flumuffel.de/getting-started.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.
