> For the complete documentation index, see [llms.txt](https://laernos.gitbook.io/ps-moderator-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://laernos.gitbook.io/ps-moderator-guide/how-to/mod-commands/ban-and-kick.md).

# Ban & Kick

Commands that allow you to perform moderation actions.

## Ban (<mark style="color:orange;">YAGPDB</mark>)

You ban the specified person from the server based on their IP.

{% code title="Usage:" %}

```python
!ban <@kişi/id> [sebep]

[-d Duration:Duration]
[-ddays Days:Whole number]
```

{% endcode %}

## Ban (<mark style="color:blue;">DYNO</mark>)

You ban the specified person from the server through different methods based on their IP.

{% code title="Usage:" %}

```c
?ban save - Ban a user and save their messages in chat.
?ban match - Ban members who sent messages matching the text, up to 100 messages.

?ban [user] (limit) (reason)
?ban save [user] (limit) (reason)
?ban match [match text]
```

{% endcode %}

## Mass Ban (<mark style="color:green;">CARL</mark>)

You ban multiple specified members at the same time based on their IPs.

{% code title="Usage:" %}

```c
.massban <id> [id] [id]
```

{% endcode %}

## Hapishane

You send the member to prison.

{% code title="Usage:" %}

```scala
!banla <@user/id> [reason]
                  {ticket}
                  {durum reklam/banner reklam/hakkı(i)n(m)da reklam}
```

{% endcode %}

<div align="left"><img src="https://content.gitbook.com/content/tU9ghzvpb2y8deTjz6yA/blobs/Jcqdx5NbTW7Zxki3vBfj/image.png" alt=""></div>

{% hint style="info" %}
**The prison command includes 3 different types of bans, and you choose among them based on the reason you enter.**\
**-** Ban (📿Fate Prisoner Patates) (default)\
**-** Ticket Ban (🤏No Ticket Patates)\
**-** Restriction Ban (😡Advertiser)
{% endhint %}

{% tabs %}
{% tab title="Ban" %}

### Yetkililer

* 👩‍💻<mark style="color:green;">Secretary Patates</mark>
* <mark style="color:yellow;">👨‍🏫Advisor Patates</mark>
* <mark style="color:purple;">🧙‍♀️Registrar Patates</mark>

{% code title="Usage:" %}

```scala
!banla <@kişi/id> [reason]
```

{% endcode %}

<div align="left"><img src="https://content.gitbook.com/content/tU9ghzvpb2y8deTjz6yA/blobs/dfdQSSVPIQES0VpFtGaW/image.png" alt=""></div>

{% hint style="info" %} <mark style="color:yellow;">👨‍🏫Advisor Patatesler</mark> must enter a reason to be able to ban.
{% endhint %}

{% hint style="danger" %} <mark style="color:purple;">🧙‍♀Registrar Patates</mark> have limited powers.\
The member to be banned must have the Suspicious Potato role or be unregistered and in a voice channel.
{% endhint %}
{% endtab %}

{% tab title="Ticket Ban" %}

### Yetkililer

* 👩‍💻<mark style="color:green;">Secretary Patates</mark>
* <mark style="color:yellow;">👨‍🏫Advisor Patates</mark>
* <mark style="color:orange;">👨‍🎤Event Organizer Patates</mark>
* <mark style="color:purple;">🧙‍♀️Registrar Patates</mark>
* <mark style="color:blue;">🧚‍♂️Partnership Manager Patates</mark>

{% code title="Usage:" %}

```scala
!banla <@kişi/id> <ticket>
```

{% endcode %}

<div align="left"><img src="https://content.gitbook.com/content/tU9ghzvpb2y8deTjz6yA/blobs/sCjftLaerYGVOX6IFZOz/image.png" alt=""></div>

{% hint style="info" %}
To issue a Ticket Ban, it's sufficient to include the word <mark style="color:red;">**ticket**</mark> within the reason sentence
{% endhint %}
{% endtab %}

{% tab title="Restriction" %}

### Yetkililer

* 👩‍💻<mark style="color:green;">Secretary Patates</mark>
* <mark style="color:yellow;">👨‍🏫Advisor Patates</mark>
* <mark style="color:purple;">🧙‍♀️Registrar Patates</mark>

{% code title="Usage:" %}

```scala
!banla <@user/id> <durum reklam/banner reklam/hakki(ı)n(m)da reklam>
```

{% endcode %}

<div align="left"><img src="https://content.gitbook.com/content/tU9ghzvpb2y8deTjz6yA/blobs/hle1esnVF7rW7R557HMG/image.png" alt=""></div>

{% hint style="info" %}
For advertising situations, the bot checks the person's status. If it does not contain "discord.gg" or "gg/", you cannot issue a ban.
{% endhint %}
{% endtab %}
{% endtabs %}

{% hint style="info" %}
Members sent to prison are automatically banned based on IP if they leave the server.
{% endhint %}

{% hint style="warning" %}
All roles of members sent to prison are recorded in the database; when you lift the ban, the person automatically regains their previous roles.
{% endhint %}

## Unban

You release the member from prison.

{% code title="Usage:" %}

```scala
!banaç <@user/id> [reason]
```

{% endcode %}

<div align="left"><img src="https://content.gitbook.com/content/tU9ghzvpb2y8deTjz6yA/blobs/Ipk56LjaI5iPnqgffyLt/image.png" alt=""></div>

{% hint style="info" %}
Only secretaries have the authority to unban.
{% endhint %}

## Kick

You kick the member from the server.

{% code title="Usage:" %}

```scala
!kick <@user/id> [reason]
```

{% endcode %}
