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

fix(gateway,component): SelectMenu parse per SelectOption #423

Merged
merged 5 commits into from Jan 20, 2022

Conversation

MeidoNoHitsuji
Copy link
Contributor

About

This pull request is about (X), which does (Y).

fix SelectMenu
add values in message_component

  • I've ran pre-commit to format and lint the change(s) made.
  • I've checked to make sure the change(s) work on 3.8.6 and higher.
  • This fixes/solves an Issue.
    • (If existent):
  • I've made this pull request for/as: (check all that apply)
    • Documentation
    • Breaking change
    • New feature/enhancement
    • Bugfix

@i0bs i0bs requested a review from FayeDel January 12, 2022 03:05
@i0bs
Copy link
Contributor

i0bs commented Jan 12, 2022

@DeltaXWizard look at pr pls 👀

@i0bs i0bs added bug Something isn't working enhancement New feature or request labels Jan 12, 2022
Comment on lines +323 to +324
if context.data._json.get("values"):
_args.append(context.data.values)
Copy link
Collaborator

Choose a reason for hiding this comment

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

The PR looks good to me,
but I want to know the reason behind the add values in message component detail, over simply just using context object as how it was in v3's callbacks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because in the callback function it will be much easier to immediately receive the selected value than to request it from nowhere (I, for example, did not immediately understand that the value can be obtained from the context).

Copy link
Contributor

@EdVraz EdVraz left a comment

Choose a reason for hiding this comment

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

You got a merge conflict

@i0bs i0bs changed the title (f) fix SelectMenu and addition add values in message component fix(gateway,component): SelectMenu parse per SelectOption Jan 20, 2022
@i0bs i0bs merged commit ed59946 into interactions-py:unstable Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants