Skip to content

feat: General enhancements for views#3093

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

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

Conversation

@NeloBlivion
Copy link
Copy Markdown
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
  • Added read, save, and to_file to UnfurledMediaItem
  • Added easy conversions for MediaGallery
  • 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.

Comment thread discord/ui/action_row.py Outdated
Comment thread discord/ui/container.py Outdated
Comment thread discord/ui/core.py Outdated
Comment thread discord/ui/section.py Outdated
Comment thread discord/components.py Outdated
Comment thread discord/ui/container.py Outdated
Comment thread discord/ui/action_row.py
Comment thread discord/ui/modal.py Outdated
Comment thread discord/ui/media_gallery.py Outdated
Comment thread CHANGELOG.md Outdated
NeloBlivion and others added 17 commits March 27, 2026 18:17
Co-authored-by: Paillat <jeremiecotti@ik.me>
Signed-off-by: Nelo <41271523+NeloBlivion@users.noreply.github.com>
Co-authored-by: Paillat <jeremiecotti@ik.me>
Signed-off-by: Nelo <41271523+NeloBlivion@users.noreply.github.com>
Co-authored-by: Paillat <jeremiecotti@ik.me>
Signed-off-by: Nelo <41271523+NeloBlivion@users.noreply.github.com>
@Paillat-dev Paillat-dev self-requested a review April 5, 2026 21:49
@Lulalaby Lulalaby force-pushed the master branch 3 times, most recently from 25347b5 to cc6ebbb Compare April 14, 2026 09:00
@Paillat-dev Paillat-dev force-pushed the master branch 2 times, most recently from 45025bd to 01e9fa8 Compare April 14, 2026 10:21
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

6 participants