> For the complete documentation index, see [llms.txt](https://thediamondroblox.gitbook.io/advancedbot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://thediamondroblox.gitbook.io/advancedbot/how-do-i-use-the-lockdown-command.md).

# How do I use the lockdown command?

Setting up the lockdown command with AdvancedBot.

**This is a guide on how to setup lockdowns with AdvancedBot.**\
The command is:\
`?lockdown`\
There are 5 subcommands to the lockdown command.\
The subcommands are:\
`?lockdown add`\
`?lockdown remove`\
`?lockdown start`\
`?lockdown end`\
`?lockdown config`\
The command usages are:\
`?lockdown add [channel]`\
`?lockdown remove [channel]`\
`?lockdown start [reason]`\
`?lockdown end [reason]`\
`?lockdown config show`\
The channel argument supports: Channel name, channel id, channel mention.\
The command usages examples:\
`?lockdown add #general-chat`\
`?lockdown remove #epic-chat`\
`?lockdown start This server is on lockdown due to a raid.`\
`?lockdown end The server has been unlocked.`\
`?lockdown config show`\
Things to make sure:\
`- You are using the right prefix while using the command.`\
`- The moderation module is enabled in the server.`\
`- The lockdown command is enabled in the server.`\
`- You have the correct permissions while using the command.` \
`- All channels which you are selecting for lockdowns, must have the correct permissions setup:`\
This is how correct permissions can be setup:\
**Server Settings --> Roles:**\
Members or @everyone: Send Messages = ✅\
**Channel Overrides:**\
Members or @everyone: Send Messages = /\
**Note:** If any role which has Send Messages enabled in the channel overrides, those roles will be considered immune to lockdowns.\
If you have any question/concern or face any difficulties with setting up or using the lockdown feature, you can feel free to ask in AdvancedBot's [support server](https://discord.gg/X9URYUd).\
\ <br>
