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

Auto populated select menus #1269

Merged
merged 10 commits into from
Dec 2, 2022
Merged

Auto populated select menus #1269

merged 10 commits into from
Dec 2, 2022

Conversation

FedorLap2006
Copy link
Collaborator

@FedorLap2006 FedorLap2006 commented Oct 28, 2022

Implements discord/discord-api-docs#5543, auto populated (with users, channels and roles) select menus, in SelectMenu data structure.

* Add component types for user, channel, role and mentionable selects
* Add MenuType field to SelectMenu for customization of select type
* Add basic example for auto-populated selects
Implement SelectMenuType to restrict component types that can be used
in MenuType field of SelectMenu structure.
Default to SelectMenuComponent type when MenuType is not specified.
Add ephemeral flag into response to match other component examples.
@FedorLap2006 FedorLap2006 marked this pull request as ready for review November 30, 2022 22:18
@FedorLap2006 FedorLap2006 added the feature Feature implementation label Nov 30, 2022
components.go Outdated Show resolved Hide resolved
components.go Outdated Show resolved Hide resolved
@Nv7-GitHub
Copy link
Contributor

Yay its out of draft

@FedorLap2006
Copy link
Collaborator Author

FedorLap2006 commented Dec 2, 2022

Have to finish the example still

* Add a response to the selected option.
* Refactor the command to match others.
* Remove showcase of multiple menu types.
components.go Outdated Show resolved Hide resolved
@FedorLap2006 FedorLap2006 merged commit b818826 into master Dec 2, 2022
@FedorLap2006 FedorLap2006 deleted the improved-selects branch December 2, 2022 22:43
@Nv7-GitHub
Copy link
Contributor

yay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants