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

# Command Permissions

> Control where commands run and which roles can use them.

## Role restrictions

Restrictcommand gives selected roles exclusive access to a command. List shows configured rules and reset removes all command restrictions.

```text theme={null}
,restrictcommand add ban @Moderator
,restrictcommand list
```

## Disable and re-enable

Commands can be disabled for a channel, a member, or the server. Enablecommand provides re-enable controls. Check the exact target before changing access.

## Permission layers

Custom restrictions are separate from fake permissions, Discord permissions, and role hierarchy. Review each layer when investigating an unavailable command.

<CardGroup cols={1}>
  <Card title="Fake Permissions" icon="key-round" href="/security/fake-permissions">
    Grant bot-level permissions to roles without changing their Discord permissions.
  </Card>

  <Card title="Permissions" icon="key-round" href="/resources/permissions">
    Understand member access, bot permissions, and role hierarchy.
  </Card>
</CardGroup>

## Command reference

Examples use the default comma prefix. Required inputs use angle brackets; optional inputs use square brackets. Each command notes whether it is also registered in Discord's slash menu.

<AccordionGroup>
  <Accordion title=",restrictcommand" icon="terminal">
    Restrict commands to specific roles.

    ### restrictcommand add

    Allow a role exclusive permission to use a command.

    ```text Prefix syntax theme={null}
    ,restrictcommand add <command> <role>
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `command` | Yes | Command or dotted command path |
    | `role` | Yes | Role to allow |

    ### restrictcommand remove

    Remove a role's exclusive permission for a command.

    ```text Prefix syntax theme={null}
    ,restrictcommand remove <command> <role>
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `command` | Yes | Command or dotted command path |
    | `role` | Yes | Role to remove |

    ### restrictcommand list

    View every restricted command.

    ```text Prefix syntax theme={null}
    ,restrictcommand list [filter]
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `filter` | No | Optional command path or role |

    ### restrictcommand reset

    Remove every command restriction.

    ```text Prefix syntax theme={null}
    ,restrictcommand reset
    ```
  </Accordion>

  <Accordion title=",disablecommand" icon="terminal">
    Disable commands in channels, for members, or globally.

    ### disablecommand target

    Disable a command in a channel or for a member.

    ```text Prefix syntax theme={null}
    ,disablecommand target <target> <command>
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `target` | Yes | Channel or member |
    | `command` | Yes | Command name |

    ### disablecommand list

    View disabled commands.

    ```text Prefix syntax theme={null}
    ,disablecommand list
    ```

    ### disablecommand all

    Disable a command everywhere.

    ```text Prefix syntax theme={null}
    ,disablecommand all <command>
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `command` | Yes | Command name |
  </Accordion>

  <Accordion title=",enablecommand" icon="terminal">
    Enable commands in channels, for members, or globally.

    ### enablecommand target

    Enable a command in a channel or for a member.

    ```text Prefix syntax theme={null}
    ,enablecommand target <target> <command>
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `target` | Yes | Channel or member |
    | `command` | Yes | Command name |

    ### enablecommand all

    Enable a command in every channel.

    ```text Prefix syntax theme={null}
    ,enablecommand all <command>
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `command` | Yes | Command name |
  </Accordion>

  <Accordion title=",ignore" icon="terminal">
    Manage ignored channels and roles for Semetary logs.

    <Note>This command is also registered in Discord’s slash menu. Select the command there to fill in named inputs.</Note>

    ### ignore channel

    Ignore a channel from logging.

    ```text Prefix syntax theme={null}
    ,ignore channel <channel>
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `channel` | Yes | The channel to ignore. |

    ### ignore role

    Ignore a role from logging.

    ```text Prefix syntax theme={null}
    ,ignore role <role>
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `role` | Yes | The role to ignore. |

    ### ignore remove-channel

    Remove a channel from the ignore list.

    ```text Prefix syntax theme={null}
    ,ignore remove-channel <channel>
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `channel` | Yes | The channel to remove. |

    ### ignore remove-role

    Remove a role from the ignore list.

    ```text Prefix syntax theme={null}
    ,ignore remove-role <role>
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `role` | Yes | The role to remove. |

    ### ignore list

    View ignored channels and roles.

    ```text Prefix syntax theme={null}
    ,ignore list
    ```
  </Accordion>

  <Accordion title=",permissions" icon="terminal">
    Check Semetary's core and feature-specific permissions.

    <Note>This command is also registered in Discord’s slash menu. Select the command there to fill in named inputs.</Note>

    ### permissions

    Check Semetary's core and feature-specific permissions.

    ```text Prefix syntax theme={null}
    ,permissions
    ```
  </Accordion>
</AccordionGroup>


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