202 Commits (b758dd72ad4332786d14bb79679cff8dde49ed8f)

Author SHA1 Message Date
Michael bcea13e993
Allow ui.View initialization without a running event loop 6 months ago
Rapptz 0052878983 Guard against Item.view being None when dispatching 7 months ago
Soheab 9580898c97
Detach view from item when removed 8 months ago
DA344 e2cf721e9c
Fix container items having out of date internal state 8 months ago
Sacul 8f2cb60700
Fix inaccurate total_children_count property in modals 8 months ago
Rapptz 88294fe352 Fix Section.accessory setter not updating view bindings 9 months ago
Rapptz 651699fcd2 Remove buggy and unintentional Container.children setter 9 months ago
Rapptz 8f90b7d534 Add shoutout to Button and Thumbnail accessories for Section 9 months ago
Soheab_ d78636283b Correct supported types in docs for modal components 10 months ago
Soheab_ 178ea664b2 Add missing required kwarg to all select classes 10 months ago
Soheab_ 2d7e0614ad Add support for File Upload component 10 months ago
Soheab_ 944ffe93c7 Handle resolved data for modal components and types 10 months ago
Soheab_ 1d3642d1fe Fix KeyError on custom_id for modal components that don't support it 10 months ago
Rapptz 78ff16621a Fix certain component IDs not being able to be settable afterwards 9 months ago
Lucas Hardt a7f349498a
Upgrade code by using f-strings and yield from 10 months ago
Sacul 44956db033
Update modal example in docstring 10 months ago
Rapptz 89d5cbd78a Move v2 item check from BaseView to View 10 months ago
Rapptz 116107d7ed Add accessory to Section.__repr__ 11 months ago
Rapptz d5946d1cbc Fix bounds for TextInput and Label generic 11 months ago
lmaotrigine 50b0d219b5
Add missing versionadded to some BaseView items 11 months ago
Rapptz 63357e0113 Revert "Add second generic parameter for view for DynamicItem" 11 months ago
Rapptz 9677dada1f Fix Modal not raising when hitting the 5 item limit 11 months ago
Rapptz bb45e050b9 Change Modal inheritance to BaseView instead of View 11 months ago
Rapptz fe7ce982f3 Add second generic parameter for view for DynamicItem 11 months ago
Rapptz 6d5013030b Flip if statement for wrapped ActionRow components in modals 11 months ago
Rapptz de09031899 Allow TextDisplay as a top-level component in modals 11 months ago
Rapptz 9bda89b0d6 Update total count tracking to always consider the wrapper object 11 months ago
DA344 0309aac335
Add a swap method for dynamic item's dispatching 11 months ago
Rapptz 20f4bc40ad Remove outdated comment 11 months ago
Rapptz 59e28af19f Fix Section.accessory being MISSING 11 months ago
Sacul 27d69e98e2
Fix note in button decorator in action row 11 months ago
DA344 24aa98b923
Fix Section.children and accessory's parent being None 11 months ago
Rapptz 9dbf13c2f9 Document Section.accessory as an attribute 11 months ago
Rapptz 44a44e938f Reformat entire project with ruff instead of black 11 months ago
Rapptz 3ef6272e07 Fix error with View.from_message when having multiple items 11 months ago
Rapptz d58c055c5b Remove unused import 11 months ago
Rapptz 5d49f11709 Remove View.from_dict typing 11 months ago
Rapptz fc12a41cdf Run black 11 months ago
Rapptz 064cb7af71 Add View.total_children_count 11 months ago
Rapptz f08c042217 Add content_length method to LayoutView and container items 11 months ago
Rapptz 6f6d990195 Fix type error with ItemCallbackType 11 months ago
Rapptz 4854c56d58 Allow discord.File in places where UnfurledMediaItem or str are allowed 11 months ago
Rapptz 9ef5b054e5 Refactor total children count to an overrideable method 11 months ago
Rapptz 2a69ac4ca8 Document difference between View and LayoutView 11 months ago
Rapptz 24d3a12117 Remove unused row parameter from TextDisplay 11 months ago
Rapptz 4f539b710f Fix type errors in all examples 11 months ago
Soheab 13432591c6
Fix various docs around UI items 11 months ago
Rapptz 38c6407ffd Maintain a reference to View dispatched tasks 11 months ago
Rapptz 3fb627d078 Add support for label components and select in modals 11 months ago
Rapptz 9fb74fd7a1 Remove unnecessary TypeGuard 11 months ago