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 new select components #353

Merged
merged 1 commit into from
Nov 21, 2022

Conversation

twoscott
Copy link
Contributor

This pull request adds the new select components. It also renames SelectComponent to StringSelectComponent in-line with the documentation. TextInputComponent.Value was also changed from option.NullableString to string as I don't see a reason for it to be optional - when you submit from a modal, the values in the text input components are sent to the API and then received as a MESSAGE_COMPONENT interaction event where the attached components have the same values submitted into the modal, so I can't see where it would need to be nullable?

@diamondburned
Copy link
Owner

so I can't see where it would need to be nullable

The documentation doesn't seem to suggest this, so I agree.

Are there any other components that still use option.NullableString? Are the examples updated?

@twoscott
Copy link
Contributor Author

No other components use option.NullableString, and the examples are updated here.

@diamondburned diamondburned merged commit 1b31249 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