[Feature Request] Hiding slash commands and buttons from other users
Buttons and slash commands are a MASSIVE improvement, but right now there's some glaring issues holding them back from being completely amazing (in my opinion).
One of which being there is no way to hide interactions from users who shouldn't be able to see them. For example, I have a bot which has a /config command which litters the command list for every user, even though 90% of them aren't able to use the command, not to mention that it also clutters it up in DM channels where you can't use it either.
And for buttons, this same bot has a command which opens a browser with arrow buttons, but I only want that user to be able to use the buttons, and I just have to send an ephemeral message to other users who aren't allowed to click them.
Here's how I think the API should be changed to fix these problems:
- When updating slash commands, you can optionally set a permission bit(s) which allows access to the command, and hides it from everyone else. I know there is already a permission system in the API but it seems that it requires an API request per-server and relies on explicitly referencing a certain user/role ID, it should be based on permissions so that it works across different servers.
- When sending a button interaction, you can optionally set either a list of users and/or permission who it is shown to, and hide it from everyone else. If users can see a button which they can't click anyway, it clutters up the interface and only causes frustration. It would be better to simply not show the buttons at all, and make them visible only to the users who can click them.
These two changes would dramatically increase the amount of control bot developers have and ultimately improve the end-user experience for using commands and button interactions. I think these two main flaws are holding back these features from being as awesome as they possibly could be, and I hope they'll be changed/improved soon enough!
Thank you :D
-
While it is possible to check permissions after a user has sent a command and reply with a "you don't have the permission to execute this command" type of text, having unusable commands hidden in the ui entirely would resolve in both, a better user experience, and less server side (bot, not discord) code.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar