Skip to content
New issue

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

discord: Add StringOption Min/MaxLength #354

Merged

Conversation

twoscott
Copy link
Contributor

This pull request adds Min/MaxLength fields for StringOption, documented here. Min/Max fields for IntegerOption and NumberOption were also renamed to Min/MaxValue to differentiate better between ...Value and ...Length fields. This is breaking but makes them more accurate to the API and there may be breaking changes in #353 anyway.

@diamondburned
Copy link
Owner

Min/Max fields for IntegerOption and NumberOption were also renamed to Min/MaxValue to differentiate better between ...Value and ...Length fields. This is breaking but makes them more accurate to the API and there may be breaking changes in #353 anyway.

I don't think this is necessary. Min and Max makes perfect sense given an integer/number type.

@twoscott twoscott force-pushed the string-option-length-limits branch from 8e894c7 to f62a501 Compare November 20, 2022 15:37
@twoscott
Copy link
Contributor Author

That's true, amended in f62a501.

@diamondburned diamondburned merged commit e5aabda into diamondburned:v3 Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants