Skip to content

feat: General enhancements for views#3093

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

feat: General enhancements for views#3093
NeloBlivion wants to merge 128 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.

@Lulalaby Lulalaby added this to Pycord Mar 18, 2026
@github-project-automation github-project-automation bot moved this to Todo in Pycord Mar 18, 2026
Paillat-dev
Paillat-dev previously approved these changes Mar 22, 2026
Copy link
Member

@Paillat-dev Paillat-dev left a comment

Choose a reason for hiding this comment

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

test

@NeloBlivion NeloBlivion requested review from a team and Paillat-dev March 22, 2026 21:41
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 PA: All Contributors pending

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Overloads for DesignerView etc

5 participants