Skip to content

feat: General enhancements for views#3093

Open
NeloBlivion wants to merge 113 commits intoPycord-Development:masterfrom
NeloBlivion:view_additions
Open

feat: General enhancements for views#3093
NeloBlivion wants to merge 113 commits intoPycord-Development:masterfrom
NeloBlivion:view_additions

Conversation

@NeloBlivion
Copy link
Member

@NeloBlivion NeloBlivion commented Feb 7, 2026

Summary

  • replace_item added to DesignerView, ActionRow, Section, Container, and MediaGallery
  • add_item supports positioning with parameters before, after, and index
  • get_item supports getting items by any attribute instead of just id and custom_id
  • Implements Message.get_view to retrieve a stored view or generate a new view
  • Implements len(View) to get the true item count in a view
  • Implements all add_x variants on DesignerView
  • Implements add_text and add_label on DesignerModal
  • Implements DesignerModal.from_dict
  • Fixed up some typing

Information

  • 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, ...).

Checklist

  • I have searched the open pull requests for duplicates.
  • 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.
  • I have updated the changelog to include these changes.

@NeloBlivion NeloBlivion marked this pull request as ready for review March 16, 2026 10:34
@NeloBlivion NeloBlivion requested review from a team as code owners March 16, 2026 10:34
@NeloBlivion
Copy link
Member Author

probably complete, have fun testing xo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

components Related to discord components (Views + Modals) feature Implements a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Overloads for DesignerView etc

5 participants