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

# Commands Management

<Card title="Module: Command Management" icon="terminal" horizontal="True">
  Manage commands inside your server, restrict or disable commands
</Card>

<Warning>
  Command disabling is not imposed on those with the `administrator` permission
</Warning>

## Restricting a command

<Tabs />

Restrict a command to a channel or role within your server

<CodeGroup>
  ```javascript syntax theme={null}
  ,restrictcommand (channel or role) (command)
  ```

  ```javascript example theme={null}
  ,restrictcommand #general avatar
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/kyos-c60486ad/I5vQIDwxulOEOE4L/images/commands-1.png?fit=max&auto=format&n=I5vQIDwxulOEOE4L&q=85&s=cdaca665ecd4ec46cc1540a35a6e5e10" width="322" height="124" data-path="images/commands-1.png" />
</Frame>

## Unrestrict command

<Tabs />

To unrestrict a command, use the `urc` command

<CodeGroup>
  ```javascript syntax theme={null}
  ,unrestrictcommand (channel or role) (command)
  ```

  ```javascript example theme={null}
  ,unrestrictcommand #general avatar
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/kyos-c60486ad/I5vQIDwxulOEOE4L/images/command-2.png?fit=max&auto=format&n=I5vQIDwxulOEOE4L&q=85&s=ea12475bd81545538fbab889c44d7fe9" width="338" height="128" data-path="images/command-2.png" />
</Frame>

## Viewing the restricted commands

<Tabs />

To view the currently restricted commands, use the `restrictedcmds` command

<CodeGroup>
  ```javascript syntax theme={null}
  ,restrictedcmds
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/kyos-c60486ad/I5vQIDwxulOEOE4L/images/command-3.png?fit=max&auto=format&n=I5vQIDwxulOEOE4L&q=85&s=4105248f7502c8a5141b0f713c5f03e0" width="258" height="190" data-path="images/command-3.png" />
</Frame>

## Disabling a command

<Tabs />

To disable a command, use the `disable` command
<Tip>Members with the `administrator` permission bypass disabled commands</Tip>

<CodeGroup>
  ```javascript syntax theme={null}
  ,disable (command)
  ```

  ```javascript example theme={null}
  disablecommand avatar
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/kyos-c60486ad/I5vQIDwxulOEOE4L/images/command-4.png?fit=max&auto=format&n=I5vQIDwxulOEOE4L&q=85&s=78514b4e76bf9add608b81dae14c0913" width="336" height="124" data-path="images/command-4.png" />
</Frame>

## Enable a command

<Tabs />

To enable a command, use the `enable` command

<CodeGroup>
  ```javascript syntax theme={null}
  ,enable (command)
  ```

  ```javascript example theme={null}
  ,enable avatar
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/kyos-c60486ad/I5vQIDwxulOEOE4L/images/command-5.png?fit=max&auto=format&n=I5vQIDwxulOEOE4L&q=85&s=3dc7ea959f6d3a580e189585dcaaf1e7" width="340" height="136" data-path="images/command-5.png" />
</Frame>

## Viewing the disabled commands

<Tabs />

To view the currently disabled commands, use the `disabled` command

<CodeGroup>
  ```javascript syntax theme={null}
  ,disabled
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/kyos-c60486ad/I5vQIDwxulOEOE4L/images/commands-7.png?fit=max&auto=format&n=I5vQIDwxulOEOE4L&q=85&s=abe93e6ce008177d1a737110cafa7c4b" width="244" height="190" data-path="images/commands-7.png" />
</Frame>

# Related Commands

<AccordionGroup>
  <Accordion title="Disabling a module">
    To disable a **module**, use the `disablemodule` command

    <CodeGroup>
      ```javascript example theme={null}
      ,disablemodule lastfm
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Enabling a module">
    To enable a **module**, use the `enablemodule` command

    <CodeGroup>
      ```javascript example  theme={null}
      ,enablemodule lastfm
      ```
    </CodeGroup>
  </Accordion>
</AccordionGroup>
