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

Add support for Input Text and Modal components #630

Merged
merged 15 commits into from
Feb 9, 2022
Merged

Add support for Input Text and Modal components #630

merged 15 commits into from
Feb 9, 2022

Conversation

krittick
Copy link
Contributor

Summary

Remake of #573 because I broke things in my fork.

Note: Pretty much done, works as expected. Might need some more work on docstrings.

Checklist:

  • Base objects/classes/enums
    • Input Text
    • Modals
  • Docstrings
    • Input Text
    • Modals
  • Examples to show usage

This adds support for input text and modal components.

Closes #490

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, typehinting, examples, ...)

Credit to @Chiggy-Playz for their guidance in pointing me toward re-using many of the methodologies from View/Button/Select to quickly get our implementation running.

@Lulalaby Lulalaby added priority: medium Medium Priority discord limitation Limitation imposed by discord feature Implements a feature labels Dec 24, 2021
Lulalaby
Lulalaby previously approved these changes Dec 24, 2021
@BobDotCom BobDotCom added this to In progress in v2.1 via automation Dec 24, 2021
@BobDotCom BobDotCom added this to the v2.1 milestone Dec 24, 2021
@BobDotCom
Copy link
Member

Placed this under 2.1 since it might not release before 2.0 comes out.

@BobDotCom BobDotCom added status: planned Planned in the future status: awaiting review Awaiting review from a maintainer labels Dec 24, 2021
@Lulalaby Lulalaby self-requested a review January 1, 2022 18:20
v2.1 automation moved this from In progress to Review in progress Jan 1, 2022
@Lulalaby Lulalaby added Merge with squash priority: high High Priority and removed discord limitation Limitation imposed by discord priority: medium Medium Priority status: planned Planned in the future labels Jan 7, 2022
@Lulalaby Lulalaby removed this from Review in progress in v2.1 Jan 7, 2022
@Lulalaby Lulalaby added this to In progress in v2.0 via automation Jan 7, 2022
@Lulalaby Lulalaby modified the milestones: v2.1, v2.0 Jan 7, 2022
Lulalaby
Lulalaby previously approved these changes Jan 7, 2022
Dorukyum
Dorukyum previously approved these changes Feb 1, 2022
Lulalaby
Lulalaby previously approved these changes Feb 1, 2022
@Lulalaby
Copy link
Member

Lulalaby commented Feb 1, 2022

⚠️ Do not merge yet

examples/modal_dialogs.py Outdated Show resolved Hide resolved
examples/modal_dialogs.py Outdated Show resolved Hide resolved
examples/modal_dialogs.py Outdated Show resolved Hide resolved
# Conflicts:
#	discord/bot.py
@krittick krittick dismissed stale reviews from Lulalaby and Dorukyum via d58cbae February 4, 2022 22:09
krittick and others added 5 commits February 4, 2022 14:10
Co-authored-by: Middledot <78228142+Middledot@users.noreply.github.com>
Co-authored-by: Middledot <78228142+Middledot@users.noreply.github.com>
Co-authored-by: Middledot <78228142+Middledot@users.noreply.github.com>
@krittick
Copy link
Contributor Author

krittick commented Feb 9, 2022

Since this feature is now released, let's prioritize reviewing this ASAP.

@krittick
Copy link
Contributor Author

krittick commented Feb 9, 2022

Wait, the Text Input Component has released? I thought it was just the form type things. Or are the forms the text input components.

Text Input components are only available in modal dialogs.

@Pycord-Development Pycord-Development locked and limited conversation to collaborators Feb 9, 2022
@Lulalaby Lulalaby enabled auto-merge (squash) February 9, 2022 00:33
@Lulalaby Lulalaby merged commit 8690471 into Pycord-Development:master Feb 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Implements a feature priority: high High Priority status: awaiting review Awaiting review from a maintainer
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Add Support for Modals & Input Text in Application Commands
6 participants