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

# fake permissions

,allow moderators to use fight's moderation commands without giving them the matching permission in discord

### why use fake permissions?

fake permissions completely removes the possibility of a moderator using a script which floods the **discord api** and mass bans all members, or any other harmful action.

### how do fake permissions work?

when a moderator is given a fake permission it allows them to run the command via **fight** but they will not be able to use the native discord feature.

### getting command permissions

to locate permissions required for a command do `,help (command)`.

<Frame>
  <img src="https://mintcdn.com/fightbot/13CIA5wx6Y9GrBjt/security/images/permissions.png?fit=max&auto=format&n=13CIA5wx6Y9GrBjt&q=85&s=1df3b6dc0d5e91f97a8c33ca3422e2a3" alt="Permissions" width="225" height="207" data-path="security/images/permissions.png" />
</Frame>

### using fake permissions

<Warning>
  only the **server owner** can use these commands
</Warning>

<AccordionGroup>
  <Accordion title="fakepermissions add">
    give fake permissions to a role

    <CodeGroup>
      ```javascript syntax theme={null}
      ,fakepermissions add (role) (permissions)
      ```

      ```javascript example theme={null}
      ,fakepermissions add @admin administrator
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="fakepermissions remove">
    remove fake permissions from a role

    <CodeGroup>
      ```javascript syntax theme={null}
      ,fakepermissions remove (role) (permission)
      ```

      ```typescript example theme={null}
      ,fakepermissions remove @admin administrator
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="fakepermissions list">
    list all fake permissions

    <CodeGroup>
      ```javascript syntax theme={null}
      ,fakepermissions list
      ```

      ```javascript example theme={null}
      ,fakepermissions list
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="fakepermissions reset">
    reset all fake permissions

    <CodeGroup>
      ```javascript syntax theme={null}
      ,fakepermissions reset
      ```

      ```text example theme={null}
      ,fakepermissions reset
      ```
    </CodeGroup>
  </Accordion>
</AccordionGroup>
