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

Select menu types #707

Merged
merged 5 commits into from
Nov 14, 2022
Merged

Select menu types #707

merged 5 commits into from
Nov 14, 2022

Conversation

baskerbyte
Copy link
Contributor

@baskerbyte baskerbyte commented Oct 28, 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

@lukellmann lukellmann added the hacktoberfest-accepted Pull requests participating in hacktoberfest label Oct 29, 2022
Copy link
Contributor

@NoComment1105 NoComment1105 left a comment

Choose a reason for hiding this comment

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

LGTM, very excited for some of these menu types 👀

common/src/main/kotlin/entity/DiscordComponent.kt Outdated Show resolved Hide resolved
common/src/main/kotlin/entity/DiscordComponent.kt Outdated Show resolved Hide resolved
@lukellmann
Copy link
Member

Do you have unpushed changes for this? Since you already marked the comments as resolved.

@baskerbyte
Copy link
Contributor Author

Do you have unpushed changes for this? Since you already marked the comments as resolved.

Yes! I'll try to make commit later today

Copy link
Member

@lukellmann lukellmann left a comment

Choose a reason for hiding this comment

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

Looks good, I just have a few last things I changed and just committed. Can you take a look at them? Then we should be good to go.

@baskerbyte
Copy link
Contributor Author

Sure

@baskerbyte
Copy link
Contributor Author

It's ok for me.

@lukellmann
Copy link
Member

Alright, thanks!

@lukellmann lukellmann merged commit 2db2d8b into kordlib:0.8.x Nov 14, 2022
lukellmann added a commit that referenced this pull request Nov 17, 2022
The deprecations for SelectMenuBuilder.options and
SelectMenuComponent.options were propagated to the overrides in
StringSelectBuilder and StringSelectComponent when a user of Kord didn't
have progressive mode enabled.

To fix this, extensions are provided instead.

The changes in the public API are binary incompatible compared to #707
but not compared to 0.8.0-M17 so only snapshot users can be affected.

see #707, https://youtrack.jetbrains.com/issue/KT-47902 and
https://discord.com/channels/556525343595298817/587324906702766226/1042799716745879643
lukellmann added a commit that referenced this pull request Nov 17, 2022
The deprecations for SelectMenuBuilder.options and
SelectMenuComponent.options were propagated to the overrides in
StringSelectBuilder and StringSelectComponent when a user of Kord didn't
have progressive mode enabled.

To fix this, extensions are provided instead.

The changes in the public API are binary incompatible compared to #707
but not compared to 0.8.0-M17 so only snapshot users can be affected.

see #707, https://youtrack.jetbrains.com/issue/KT-47902 and
https://discord.com/channels/556525343595298817/587324906702766226/1042799716745879643
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Pull requests participating in hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants