> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bleed.bot/llms.txt
> Use this file to discover all available pages before exploring further.

# Fake Permissions

> Restrict moderators to only use bleed for moderation.

## Overview

### Why use fake permissions?

Fake permissions negate the possibility of a rogue moderator using a script which floods the **Discord API** and mass bans all members, or any other harmful action.
It's a security measure which ensures that your server can't be nuked whatsoever.

### How do fake permissions work?

When a moderator is given fake permissions, such as `ban_members`, they will be able to use the `/ban` command with **bleed**, but they won't be able to use the native **Discord** ban feature.

### Getting command permissions

You can locate the required permissions for a command with `/help`.

![](https://mintcdn.com/bleed/e31HB3tW_HibSuow/images/security/moderation/permissions.png?fit=max\&auto=format\&n=e31HB3tW_HibSuow\&q=85\&s=88302ef1b8535a23c5fb05c0b698b15a)

***

## Setting up fake permissions

> [!WARNING]
>
> The following commands can only be used by the **server owner**.

> [accordion] Granting fake permissions to a role
>
> Use the `/access fakepermissions add` command to grant a fake permission to a role.
>
> ```javascript Syntax theme={null}
> /access fakepermissions add role:<role> permissions:<permissions>
> ```
>
> ```javascript Example theme={null}
> /access fakepermissions add role:@admin permissions:ban_members,kick_members
> ```

> [accordion] Revoking fake permissions from a role
>
> Use the `/access fakepermissions remove` command to revoke a fake permission from a role.
>
> ```javascript Syntax theme={null}
> /access fakepermissions remove role:<role> permissions:<permissions>
> ```
>
> ````
>
> ```javascript Example
> /access fakepermissions remove role:@admin permissions:ban_members,kick_members
> ````

> [accordion] Viewing fake permissions
>
> Use the `/access fakepermissions list` command to view all fake permissions.
> \[!NOTE] You can optionally specify a role to only view the fake permissions of that role.
>
> ```javascript Syntax theme={null}
> /access fakepermissions list role:<role>
> ```
>
> ```javascript Example theme={null}
> /access fakepermissions list role:@admin
> ```

> [accordion] Revoking all fake permissions
>
> Use the `/access fakepermissions reset` command to reset all fake permissions.

## Recommended Configuration

> [tab] Moderator
>
> * `manage_messages` - Allows the moderator to delete messages.
> * `moderate_members` - Allows the moderator to timeout members.
> * `manage_nicknames` - Allows the moderator to change nicknames.
> * `kick_members` - Allows the moderator to kick members from the server.
>
> ```javascript theme={null}
> /access fakepermissions add role:@moderator permissions:manage_messages, moderate_members, manage_nicknames, kick_members
> ```

> [tab] Administrator
>
> * `manage_messages` - Allows the administrator to delete messages.
> * `moderate_members` - Allows the administrator to timeout members.
> * `manage_nicknames` - Allows the administrator to change nicknames.
> * `manage_roles` - Allows the administrator to manage roles.
> * `ban_members` - Allows the administrator to ban members.
> * `kick_members` - Allows the administrator to kick members.
>
> ```javascript theme={null}
> /access fakepermissions add role:@administrator permissions:manage_messages, moderate_members, manage_nicknames, manage_roles, ban_members, kick_members
> ```

> [tab] Co-Owner
>
> * `administrator` - Allows the co-owner to use all moderation commands.
>
> ```javascript theme={null}
> /access fakepermissions add role:@co-owner permissions:administrator
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.