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

feat(SelectMenu): default values #1452

Merged
merged 3 commits into from Dec 8, 2023
Merged

Conversation

FedorLap2006
Copy link
Collaborator

Implement DefaultValues for SelectMenu component.
See discord/discord-api-docs#6442 for more info.

@FedorLap2006 FedorLap2006 changed the title Default values in auto-populated select menus feat(SelectMenu): default value Sep 27, 2023
@FedorLap2006 FedorLap2006 changed the title feat(SelectMenu): default value feat(SelectMenu): default values Sep 27, 2023
Since SelectMenu is used as a nested structure, it is not possible to
partially edit it. Thus, an empty slice does not need to be accounted for,
and the pointer, which would only be omitted if the value is nil, can be
converted to a regular slice.
@FedorLap2006 FedorLap2006 merged commit 0068a2d into master Dec 8, 2023
9 checks passed
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.

None yet

1 participant