We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
min_length
0
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 to True and min_length set to 0, require a value to be specified, even though min_length is 0
required
True
Create a Slash Command, with a string option, with required set to True and min_length set to 0
example json
{ "type": 1, "name": "send", "description": "send a message", "options": [ { "type": 3, "name": "message", "description": "message to send", "required": true, "min_length": 0 } ] }
The option is valid, even with an empty value, returning an empty string "" to the bot
The option is invalid, value must be specified
Web Stable 345368 (24ebc65) Build Override: N/A Fedora Linux 40 (Silverblue) x86_64
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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: