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

# Fake Permissions

> Restrict server moderators to use commands through Haunt

> [!NOTE]
>
> Check out the available permissions that Haunt provides for fake permissions [here](https://docs.haunt.site/resources/permissions.md).

> [!WARNING]
>
> Fake permissions can only be granted by the **server owner**.

### What are Fake Permissions?

Fake permissions allow you grant **roles** access to Haunt's commands under a specific **permission** without needing to give them any dangerous permissions.\

This is useful incase any one of your moderators decides to go rogue in your server.

### What's an Example?

Whenever a role is granted a fake permission for example `manage roles`, Anyone with that role can use commands from Haunt that have the `manage roles` permission.\


![](https://mintcdn.com/haunt-74016d1b/OBTME_BsucAM_ri7/images/security/fakepermissions/permission.png?fit=max\&auto=format\&n=OBTME_BsucAM_ri7\&q=85\&s=a4e807f29ebb024b38571eb1b3d8f68c)

### How do I setup fake permissions?

> [accordion] Grant fake permissions to a role
>
> ```javascript Syntax theme={null}
> ;fake grant (role) (permission)
> ```
>
> ```javascript Example theme={null}
> ;fake grant @admin kick members
> ```

> [accordion] Revoke fake permissions from a role
>
> ```javascript Syntax theme={null}
> ;fake revoke (role) (permission)
> ```
>
> ```javascript Example theme={null}
> ;fake revoke @admin manage roles
> ```

> [accordion] View what roles have been granted fake permissions
>
> > [!NOTE]
> >
> > You can optionally specify a role to only view the fake permissions of that role.
>
> ```javascript Syntax theme={null}
> ;fake view [role]
> ```
>
> ```javascript Example theme={null}
> ;fake view @admin
> ```

> [accordion] Clearing every role from using fake permissions
>
> ```javascript Syntax theme={null}
> ;fake clear
> ```
>
> ```javascript Example theme={null}
> ;fake clear
> ```

### Recommended Permissions

> [tab] Moderator
>
> * `manage messages`: Grants anyone with the role to **manage message**s.
> * `manage nicknames`: Grants anyone with the role to manage nicknames.
> * `mute members`: Grants anyone with the role to mute members.
> * `kick members`: Grants anyone with the role to kick members.
> * `ban members`: Grants anyone with the role to ban members.
> * `moderate members`: Grants anyone with the role to moderate members.
> * `manage roles`: Grants anyone with the role to manage roles in the server.
> * `manage channels`: Grants anyone with the role to manage channels in the server.
>
> ```javascript theme={null}
> ;fake grant (role) manage nicknames, manage messages
> ```

> [tab] Administrator
>
> * `administrator`: Grants every **permission** to every **command** except for **server owner** commands.
>
> ```javascript theme={null}
> ;fake grant (role) administrator
> ```

> [tab] Co Owner
>
> * `owner`: Grants every **permission** and access to \**server owner* commands.
>
> ```javascript theme={null}
> ;fake grant (role) owner
> ```


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