Override permissions for subcommands, only possible on parent command #7842
Unanswered
mccormickk
asked this question in
API Feature Requests & Ideas
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the Discord API only allows permissions to be redefined at the parent command level.
Subcommands automatically inherit the permission set of their parent command, and there is currently no mechanism to define individual permissions for each subcommand separately.
This limitation makes it difficult to implement fine-grained access control in applications where different subcommands of the same parent command require different levels of permissions.

Similar issues have been raised in the past, but several years have passed and the update has still not been released.
For example:
/family manage edit
may need to be restricted to users with the “Moderator” role./family info
may be intended for all server members.Currently, both subcommands inherit the same set of permissions from
/family
, which does not allow for detailed control.Beta Was this translation helpful? Give feedback.
All reactions