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

Update to string select #5544

Merged
merged 9 commits into from
Oct 13, 2022
Merged

Conversation

shaydewael
Copy link
Contributor

No description provided.

@shaydewael shaydewael merged commit 3a78b41 into discord:main Oct 13, 2022
@shaydewael shaydewael deleted the selects-v2-docs-updates branch October 13, 2022 21:38
| ---- | ------------------ | ------------------------------------------------- |
| 1 | Action Row | Container for other components |
| 2 | Button | Button object |
| 3 | String Select | Select menu for picking from defined text options |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe developer defined?

@@ -279,14 +279,14 @@ The payloads for the select menu components are detailed in the [select menu str
| ------------------ | ----------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| type | integer | [Type](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/component-object-component-types) of select menu component (text: `3`, user: `5`, role: `6`, mentionable: `7`, channels: `8`) |
Copy link
Contributor

@SQKo SQKo Oct 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

string: 3

lukellmann added a commit to kordlib/kord that referenced this pull request Nov 14, 2022
Major API changes are:

 * renamed ComponentType.SelectMenu to ComponentType.StringSelect

 * new ComponentTypes: UserSelect, RoleSelect, MentionableSelect and
   ChannelSelect

 * SelectMenuComponent subtype for each select menu type

 * DSL function for each select menu type in ActionRowBuilder

see discord/discord-api-docs#5543 and
discord/discord-api-docs#5544

Co-authored-by: Lukellmann <lukellmann@gmail.com>
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

3 participants