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

# Enable/Disable Commands

> Control which commands are available in your server or specific channels

## Overview

The command control system allows you to disable specific commands or all commands in your server or individual channels. This gives you fine-grained control over which bot features are available and where.

<Info>
  Critical management commands (like enable/disable commands) cannot be disabled to prevent lockouts.
</Info>

***

## Commands

<AccordionGroup>
  <Accordion title="disablecommand" icon="ban">
    Disable a specific command server-wide or in a channel.

    <CodeGroup>
      ```bash Syntax theme={null}
      ~disablecommand <command> [#channel]
      ```

      ```bash Example theme={null}
      ~disablecommand meme
      ~disablecommand fun #general
      ~blockcmd game
      ~disablecmd help #support
      ```
    </CodeGroup>

    **Parameters:**

    * **command** — Command name to disable
    * **#channel** — Optional: Specific channel to disable in

    **What It Does:**

    * Without channel: Disables command server-wide
    * With channel: Disables command only in that channel
    * Works for both prefix and slash commands

    **Aliases:** `blockcmd`, `blockcommand`, `disablecmd`\
    **Permissions:** Administrator
  </Accordion>

  <Accordion title="enablecommand" icon="check">
    Enable a previously disabled command.

    <CodeGroup>
      ```bash Syntax theme={null}
      ~enablecommand <command>
      ```

      ```bash Example theme={null}
      ~enablecommand meme
      ~enablecommand game
      ~unblockcmd fun
      ~enablecmd help
      ```
    </CodeGroup>

    **What It Does:**

    * Removes command from disabled list
    * Re-enables both prefix and slash versions
    * Removes from all channel-specific blocks

    **Aliases:** `unblockcmd`, `enablecmd`\
    **Permissions:** Administrator
  </Accordion>

  <Accordion title="disableallcommand" icon="ban">
    Disable all commands server-wide or in a channel.

    <CodeGroup>
      ```bash Syntax theme={null}
      ~disableallcommand [#channel]
      ```

      ```bash Example theme={null}
      ~disableallcommand
      ~disableallcommand #general
      ~blockall #support
      ~disableallcmd #chat
      ```
    </CodeGroup>

    **Parameters:**

    * **#channel** — Optional: Specific channel to disable all commands in

    **What It Does:**

    * Without channel: Disables all commands server-wide
    * With channel: Disables all commands in that channel
    * Protects critical management commands
    * Works for both prefix and slash commands

    <Warning>
      Critical management commands (enable/disable commands) cannot be disabled to prevent server lockouts.
    </Warning>

    **Aliases:** `blockall`, `disableallcmd`\
    **Permissions:** Administrator
  </Accordion>

  <Accordion title="enableallcommands" icon="circle-check">
    Enable all commands globally or in a specific channel.

    <CodeGroup>
      ```bash Syntax theme={null}
      ~enableallcommands [#channel]
      ```

      ```bash Example theme={null}
      ~enableallcommands
      ~enableallcommands #general
      ~unblockall #support
      ~enableallcmd
      ```
    </CodeGroup>

    **Parameters:**

    * **#channel** — Optional: Specific channel to enable all commands in

    **What It Does:**

    * Without channel: Enables all commands everywhere
    * With channel: Enables all commands in that channel
    * Clears all disabled command configurations

    **Aliases:** `unblockall`, `enableallcmd`\
    **Permissions:** Administrator
  </Accordion>

  <Accordion title="disabledcmdlist" icon="list">
    View all disabled commands in your server.

    <CodeGroup>
      ```bash Syntax theme={null}
      ~disabledcmdlist
      ```

      ```bash Example theme={null}
      ~disabledcmdlist
      ```
    </CodeGroup>

    **What It Shows:**

    * Commands disabled server-wide
    * Commands disabled in specific channels
    * Whether all commands are disabled anywhere
    * Organized by scope (server vs channel)

    **Permissions:** Administrator
  </Accordion>
</AccordionGroup>

***

## How It Works

<Steps>
  <Step title="Disable Commands">
    Block specific commands or all commands:

    ```bash theme={null}
    # Disable one command everywhere
    ~disablecommand meme

    # Disable one command in a channel
    ~disablecommand fun #general

    # Disable everything in a channel
    ~disableallcommand #spam
    ```
  </Step>

  <Step title="Check What's Disabled">
    View your current configuration:

    ```bash theme={null}
    ~disabledcmdlist
    ```
  </Step>

  <Step title="Re-enable Commands">
    Restore access when needed:

    ```bash theme={null}
    # Enable specific command
    ~enablecommand meme

    # Enable everything
    ~enableallcommands
    ```
  </Step>
</Steps>

***

## Scope Levels

<Tabs>
  <Tab title="Server-Wide">
    Disable commands for the entire server:

    ```bash theme={null}
    # Disable specific command
    ~disablecommand meme

    # Disable all commands
    ~disableallcommand
    ```

    **Effect:**

    * Command blocked in all channels
    * Applies to all members
    * Both prefix and slash versions
  </Tab>

  <Tab title="Channel-Specific">
    Disable commands in specific channels:

    ```bash theme={null}
    # Disable specific command in channel
    ~disablecommand fun #general

    # Disable all commands in channel
    ~disableallcommand #spam
    ```

    **Effect:**

    * Command works in other channels
    * Only blocks in specified channel
    * More granular control
  </Tab>
</Tabs>

***

## Protected Commands

These commands cannot be disabled to prevent server lockouts:

* `enablecommand`
* `enableallcommands`
* `disablecommand`
* `disableallcommand`
* All their aliases

<Note>
  Protection ensures you can always manage command access, even if all commands are disabled.
</Note>

***

## Permission Requirements

<CardGroup cols={2}>
  <Card title="Bot Permissions" icon="robot">
    No special permissions required beyond basic message reading and sending.
  </Card>

  <Card title="User Permissions" icon="user">
    Command Requirements:

    * **Administrator** — Required for all enable/disable commands
  </Card>
</CardGroup>

***

## Usage Examples

<Tabs>
  <Tab title="Block Fun Commands">
    ```bash theme={null}
    # Disable fun/meme commands server-wide
    ~disablecommand meme
    ~disablecommand joke
    ~disablecommand 8ball
    ~disablecommand roll

    # Check what's disabled
    ~disabledcmdlist
    ```
  </Tab>

  <Tab title="Channel-Specific Rules">
    ```bash theme={null}
    # Keep fun commands only in specific channels
    ~disablecommand meme #general
    ~disablecommand meme #chat
    # Meme still works in #fun-commands

    # Disable everything in spam channel
    ~disableallcommand #spam-room
    ```
  </Tab>

  <Tab title="Temporary Restrictions">
    ```bash theme={null}
    # Disable commands during event
    ~disableallcommand #event-channel

    # Re-enable after event
    ~enableallcommands #event-channel
    ```
  </Tab>

  <Tab title="Complete Lockdown">
    ```bash theme={null}
    # Disable all commands everywhere
    ~disableallcommand

    # Check configuration
    ~disabledcmdlist

    # Restore everything later
    ~enableallcommands
    ```
  </Tab>

  <Tab title="Management">
    ```bash theme={null}
    # View disabled commands
    ~disabledcmdlist

    # Enable specific command
    ~enablecommand game

    # Enable all commands
    ~enableallcommands

    # Enable all in specific channel
    ~enableallcommands #general
    ```
  </Tab>
</Tabs>

***

## Common Use Cases

<AccordionGroup>
  <Accordion title="Control spam in general chat" icon="message-slash">
    ```bash theme={null}
    # Disable fun commands in serious channels
    ~disablecommand meme #announcements
    ~disablecommand joke #support
    ~disablecommand fun #help
    ```
  </Accordion>

  <Accordion title="Dedicated command channels" icon="hashtag">
    ```bash theme={null}
    # Disable games everywhere except game channel
    ~disablecommand game #general
    ~disablecommand game #chat
    ~disablecommand game #support
    # Keep enabled in #game-commands
    ```
  </Accordion>

  <Accordion title="Temporary restrictions during events" icon="calendar">
    ```bash theme={null}
    # Before event
    ~disableallcommand #event-hall

    # After event
    ~enableallcommands #event-hall
    ```
  </Accordion>

  <Accordion title="Maintenance mode" icon="wrench">
    ```bash theme={null}
    # Disable everything except management
    ~disableallcommand

    # Protected commands still work
    ~disabledcmdlist
    ~enableallcommands
    ```
  </Accordion>
</AccordionGroup>

***

## Related Features

<CardGroup cols={2}>
  <Card title="Server Settings" icon="server" href="/server">
    Configure other server settings and preferences
  </Card>

  <Card title="Custom Replies" icon="sliders" href="/config">
    Customize command responses for your server
  </Card>
</CardGroup>
