[Slash Command Options] A max_values and min_values property for when choices are provided (for integer and text fields) like dropdowns #3797
Unanswered
ZeldaFan0225
asked this question in
API Feature Requests & Ideas
Replies: 1 comment 1 reply
-
seems to be a duplicate of #3286 |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Description
Add a option to let users select multiple options when the command has options, like select menus just as command option choices, this would allow for better options for both the user and developer.
Example
A automod punishment setup command.
/setautomod <punishments: delete message, send note, log in log channel, add punished role>
punishments being a string field with choices (delete message, send note, log in log channel, add punished role, kick user, ban user, mute user) and min values of 1 and max values of 7 (for 7 choices)
This would allow the user to select from a list of punishments, instead of the need to send a message with a select menu, make the user select and then handle all possible cases where the user doesn't give options which makes the usability harder for users who just want it to work.
Why this is needed
It would make many commands way easier to use as the example above or below.
/automod <triggers: bad words, invites, links>
/giveaway <time: 1week> <prize: Nitro> <requirements: must have a role, must be a member for a year, must be level 5>
/leaderboard <information: username, level, xp, join date>
In all those cases the user would have an option to decide for the options they want out of all options, such as a select menu
Additional
This could also be used to input multiple roles, users or channels.
For example if you want to set up a automod whitelist for more then one users/roles/channels.
Beta Was this translation helpful? Give feedback.
All reactions