Skip to content

Conversation

@artem30801
Copy link
Contributor

@artem30801 artem30801 commented Jun 7, 2021

About this pull request

Futher improvements in components implementation
Cherry-picked commits from previous draft to improve commit log

Changes

  • Support for both message and components as kwargs in wait_for_component
  • Support for actionrows and lists of actionrows in wait_for_component
  • Exception for hidden+edit_origin in defer
  • Warning for edit_origin=True defer when sending response
  • Warning for edit_origin=False defer when calling edit_origin
  • Move component enums to models
  • Added component attribute to ComponentContext

What changes were made?

Checklist

  • I've checked this pull request runs on Python 3.6.X.
  • This fixes something in Issues.
    • Issue:
  • This adds something new.
  • There is/are breaking change(s).
  • (If required) Relevant documentation has been updated/added.
  • This is not a code change. (README, docs, etc.)

@artem30801 artem30801 mentioned this pull request Jun 7, 2021
6 tasks
@artem30801 artem30801 marked this pull request as ready for review June 7, 2021 20:27
@i0bs i0bs self-requested a review June 8, 2021 16:38
Copy link
Contributor

@i0bs i0bs left a comment

Choose a reason for hiding this comment

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

Some minor changes requested.

@i0bs i0bs added pending Pending approve enhancement New feature or request labels Jun 9, 2021
@artem30801
Copy link
Contributor Author

Thank you very much for your feedback, I applied requested changes

@LordOfPolls LordOfPolls merged commit 6a5cb29 into interactions-py:components Jun 11, 2021
artem30801 added a commit to artem30801/discord-py-interactions that referenced this pull request Jun 13, 2021
LordOfPolls pushed a commit that referenced this pull request Jun 18, 2021
* Add support for component callbacks

* Refactored component callbacks. Added cog callbacks support

* Added component_callback event dispatching, removed testing prints

* Added error handling event for component callbacks (same as for slash commands)

* Applied pre_push

* Fix for when remove_component_callback is used before remove_component_callback_obj

* Update docs for changes

* Added ability to dynamically modify component callbacks

* Updated docs and formatting

* Updated formatting

* Updated in accordance to breaking changes introduced in #204

* Fix sphinx errors

* Changed component adding functions to accept lists (and objects) of custom_ids/message ids in the same arguments

* Added function to spread list of components (buttons) over rows

* Adjusted docstrings and error message

Co-authored-by: hpenney2 <hpenney1010@gmail.com>
@artem30801 artem30801 deleted the artem30801-compoentns-tweaks branch June 25, 2021 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request pending Pending approve

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants