You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect this to work for a bot to be able to have an option that is presented to the user (as if required, not in the optional section), but can be submitted empty. The advantage to this is that the text input would automatically be in the field when the command is entered, rather than the user having to manually select the option before beginning to input a value.
I would also expect that an empty string option like this would be presented in the interaction response object as a value of empty string, rather than omitted from the payload or null.
Description
This could be deliberate, but given that
min_length
can be set to 0, this seems like a bug.Slash Command string options, with
required
set toTrue
andmin_length
set to0
, require a value to be specified, even thoughmin_length
is 0Steps to Reproduce
Create a Slash Command, with a string option, with required set to True and min_length set to 0
example json
Expected Behavior
The option is valid, even with an empty value, returning an empty string "" to the bot
Current Behavior
The option is invalid, value must be specified
Screenshots/Videos
Client and System Information
Web
Stable 345368 (24ebc65) Build Override: N/A
Fedora Linux 40 (Silverblue) x86_64
The text was updated successfully, but these errors were encountered: