Slash Commands Permission System - Hidden Commands, Global permission by User and Guild Permission #3431
-
Manually moved issue #2920 Description The permissions system needs 3 additions:
Why This is Needed While implementing permissions into my bot I encountered multiple problems: Owner only/Bot management commands:
My temp solution: Defining owner guild ids and just do this for a few servers. Bot settings command: |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 10 replies
-
The commands are actually supposed to be hidden instead of being greyed out iirc, for now they just grey out and it will probably be seen to in the future. As for the other stuff, we really need them, this will solve a lot of issues. |
Beta Was this translation helpful? Give feedback.
-
For hiding commands users don't have permission to use, this is definitely a must have for servers with mod commands you don't want users to know about. Ideally some kind of flag we can pass in like: |
Beta Was this translation helpful? Give feedback.
-
They need to hide commants that people can't use. It's illogical to have them see them, forcing them to have senselessly long command list for unnecarly |
Beta Was this translation helpful? Give feedback.
-
The new permissions system handles most of this feedback https://discord.com/developers/docs/interactions/application-commands#permissions |
Beta Was this translation helpful? Give feedback.
-
for reference the user that posted the last comment was redirected to github from ddevs because they had a valid point about bots showing in the list even if no commands are usable, this is indeed not handled by the permission system |
Beta Was this translation helpful? Give feedback.
The new permissions system handles most of this feedback https://discord.com/developers/docs/interactions/application-commands#permissions