Add an OPTION_GROUP command option type #4033
Unanswered
DemonSlayer111
asked this question in
API Feature Requests & Ideas
Replies: 0 comments
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.
-
Add an
OPTION_GROUP
slash command option type to allow for better management of option requirements for a command.Why this is needed
Command option requirements are currently set independent of each other. However, there may be situations where a command may not have a specific requirement but simply requires one or more of several options to be provided.
Additionally, there may be cases where a command has two or more options that aren't required individually but require several options to be provided together in order to execute the command successfully.
Solution
A new option type
OPTION_GROUP
would be an adequate solution for grouping options together and more clearly defining which options are required for a command to be executed successfully.Structure
OPTION_GROUP
true
cannot be greater than the max_options valueExample command using Option Groups
Beta Was this translation helpful? Give feedback.
All reactions