Using legacy commands (like -play)? Check this article instead.
Bots are a very cool tool to spice up your Discord server. Sometimes though, you don't want chats to get flooded with commands. For those cases, it makes sense to limit the command usage to designated channels.
Below you can find a guide on how to achieve this with Groovy. Since this guide uses Discord's inbuilt permission system, which lacks granularity per bot, this will lock the usage of any other bot as well.
1. In every channel that you want Groovy to not respond in, deny Groovy's View Channel permission.
2. In every channel that you want Groovy to not respond in, deny @everyone's Use slash commands permission.