# Fake Permissions

{% hint style="info" %}
Replace `[prefix]` with your server's prefix.
{% endhint %}

## What are fake permissions?

Fake permissions are a way to help keep your server safe. With fake permissions, you can allow roles to use certain commands that require a permission without actually giving the role a permission. This will prevent any malicious harm to your server.

## Why use fake permissions? <a href="#why-use-fake-permissions" id="why-use-fake-permissions"></a>

If your roles don't have any dangerous permissions, a bot or untrustworthy/compromised staff member won't be able to do anything without using serenity.

{% hint style="warning" %}
You need to be an **administrator** to run these commands.
{% endhint %}

To **grant** roles fake permissions, use the following command:

```
// Syntax
[prefix]fakepermissions add [role] [permission]
// Example
;fakepermissions add @Mod manage_messages
```

To **revoke** fake permissions, use the following command:

```
// Syntax
[prefix]fakepermissions remove [role] [permission]
// Example
;fakepermissions remove @Mod manage_messages
```

After running these commands, serenity will tell you that you have **added/removed** fake permissions to/from a role.

<figure><img src="/files/cvFNfKldGOHgKkihSDoZ" alt=""><figcaption></figcaption></figure>


---

# 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.serenity.wtf/security-setup/fake-permissions.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.
