Search code examples
pythonpython-3.xsecuritydiscorddiscord.py

Discord.py with bots, are bot commands private to users? How to make them private?


I have a bot that I control with Discord.py - can a user somehow see all the commands that the bot has available? If so, how do I prevent this?

I ask because I have certain commands that I want to be "rewards" but I don't want people to know what they are ahead of time.


Solution

  • I think that the default help command shows all the commands you have. If you disabled it like this, you should be fine (or if you made your own help command):

    client.remove_command("help")