Skip to content

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

@EepyElvyra EepyElvyra 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.

4 participants