How do I restrict commands to a certain channel?
note
The steps below only apply to prefixed commands - not slash commands. See https://discord.com/blog/slash-commands-permissions-discord-apps-bots for more information on restricting slash commands.
If you want to allow commands in only one, or a couple channels, you can do the following:
- Disable every module. Note that you cannot disable the
permissionsmodule. You can get a list of modules by doinghelp modulesand you can disable the module by runningdisable [command/module].

- Use the
channel-overridecommand to allow the modules in the desired channel.
