> ## 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.

# Lockdown

<Card title="Module: Lockdown" icon="lock-keyhole" horizontal="True">
  Setup the channel lockdown system inside your server
</Card>

## What does this do?

The lockdown system allows you to lockdown channels inside your server. You can setup a dedicated role for the lockdown system, whether to hide the channel upon lock, or ignore channels from the **lockdown all** function. Aside from most bots defaulting for the **@everyone** role, this provides customization.

## Setting the lockdown role

<Tabs />

Set the lockdown role kyos will use when locking channels

<CodeGroup>
  ```javascript syntax theme={null}
  ,lockdown role (role)
  ```

  ```javascript example theme={null}
  ,lockdown role @Member
  ```

  ```javascript example with flags theme={null}
  ,lockdown role @Member --hide
  // --hide makes it so upon locking the channel it is not visible
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/kyos-c60486ad/AalZmPvrgh2Es8UR/images/lockdown/ld-1.png?fit=max&auto=format&n=AalZmPvrgh2Es8UR&q=85&s=3875c0b9e2b15ed0461bd210d4ecc776" width="436" height="118" data-path="images/lockdown/ld-1.png" />
</Frame>

## Ignoring a channel

Upon using **lockdown all**, you may want to ignore certain channels. With this, you can do it. If you wish to remove an ignored channel, just re-execute the command.

<CodeGroup>
  ```javascript syntax theme={null}
  ,lockdown ignore (channel)
  ```

  ```javascript example theme={null}
  ,lockdown ignore #moderator-only
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/kyos-c60486ad/AalZmPvrgh2Es8UR/images/lockdown/ld-2.png?fit=max&auto=format&n=AalZmPvrgh2Es8UR&q=85&s=c2788ffb1135e4294e132ef43967851c" width="418" height="112" data-path="images/lockdown/ld-2.png" />
</Frame>

## Locking all channels

If you wish to lock all channels at one time, execute the **lockdown all** command.

<Info>
  **Lockdown ignored** channels will not be affected.
</Info>

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

## Viewing your configurations(s)

<Tabs />

<AccordionGroup>
  <Accordion title="Viewing the configuration" icon="circle-info">
    `,lockdown configuration`
  </Accordion>

  <Accordion title="Ignored channels" icon="circle-info">
    `,lockdown ignored`
  </Accordion>
</AccordionGroup>
