Hiding buttons and commands¶
Purpose of hiding a button or command¶
When you hide a button or command, and a user tries to press the button or send the command, they will receive a message indicating that it doesn’t exist. However, you and other administrators will still be able to use it.
This is useful for sensitive buttons and commands, such as those dedicated to administration or those that should only be executed when triggered by another button or command.
Who can see and use hidden buttons and commands?¶
- The bot owner (you).
- Other administrators you’ve added to your bot.
- Other buttons and commands within the bot. When a hidden button or command is executed from another button or command, it will still function as intended.
- Through webhooks.
How to hide a button or command¶
- Go to your bot.
- Press
🛠 Edit
. -
Select the button or send the command you want to hide:
- Buttons: To select a button, press it. The button will appear surrounded by
< >
. - Commands: To select a command, send it directly to the bot.
- Buttons: To select a button, press it. The button will appear surrounded by
-
Press
👁 Hide
. This will hide the button or command for all non-administrator users of the bot.
- To make it visible again, press
👁 Show
.
Note
If the button or command you hide has other buttons inside it, those internal buttons will also be hidden. The same applies when showing a previously hidden button with internal buttons also hidden.