This guide will teach you how to restrict the bot to a select roles and/or users.
Administratorpermission from the bot’s role and replace with
- Create a channel where the bot’s commands would be run.
- Set the roles and users you want to be able to run commands to have access to the commands channel.
- Remove the bot’s permissions from seeing all other public channels.