|
32 | 32 | from .default_select_option import DefaultSelectOption |
33 | 33 | from .file_component import FileComponent |
34 | 34 | from .input_text import TextInput |
35 | | -from .interaction_components import ( |
36 | | - InteractionButton, |
37 | | - InteractionChannelSelect, |
38 | | - InteractionComponent, |
39 | | - InteractionLabel, |
40 | | - InteractionMentionableSelect, |
41 | | - InteractionRoleSelect, |
42 | | - InteractionSelect, |
43 | | - InteractionStringSelect, |
44 | | - InteractionTextDisplay, |
45 | | - InteractionTextInput, |
46 | | - InteractionUserSelect, |
47 | | - InteractionWalkableComponent, |
48 | | - UnknownInteractionComponent, |
49 | | - _interaction_component_factory, # pyright: ignore[reportPrivateUsage] |
50 | | -) |
51 | 35 | from .label import Label |
52 | 36 | from .media_gallery import MediaGallery |
53 | 37 | from .media_gallery_item import MediaGalleryItem |
54 | 38 | from .mentionable_select_menu import MentionableSelect |
55 | 39 | from .modal import Modal |
| 40 | +from .partial_components import ( |
| 41 | + PartialButton, |
| 42 | + PartialChannelSelect, |
| 43 | + PartialComponent, |
| 44 | + PartialLabel, |
| 45 | + PartialMentionableSelect, |
| 46 | + PartialRoleSelect, |
| 47 | + PartialSelect, |
| 48 | + PartialStringSelect, |
| 49 | + PartialTextDisplay, |
| 50 | + PartialTextInput, |
| 51 | + PartialUserSelect, |
| 52 | + PartialWalkableComponent, |
| 53 | + UnknownPartialComponent, |
| 54 | + _interaction_component_factory, # pyright: ignore[reportPrivateUsage] |
| 55 | +) |
56 | 56 | from .role_select_menu import RoleSelect |
57 | 57 | from .section import Section |
58 | 58 | from .select_menu import Select |
|
65 | 65 | # Don't change the import order |
66 | 66 | from .type_aliases import ( |
67 | 67 | AnyComponent, |
68 | | - AnyInteractionComponent, |
69 | | - AnyMessageInteractionComponent, |
| 68 | + AnyMessagePartialComponent, |
| 69 | + AnyPartialComponent, |
70 | 70 | AnyTopLevelMessageComponent, |
71 | 71 | AnyTopLevelModalComponent, |
72 | | - AnyTopLevelModalInteractionComponent, |
| 72 | + AnyTopLevelModalPartialComponent, |
73 | 73 | ) |
74 | 74 | from .unfurled_media_item import UnfurledMediaItem |
75 | 75 | from .unknown_component import UnknownComponent |
|
89 | 89 | "RoleSelect", |
90 | 90 | "MentionableSelect", |
91 | 91 | "ChannelSelect", |
92 | | - "AnyMessageInteractionComponent", |
| 92 | + "AnyMessagePartialComponent", |
93 | 93 | "SelectOption", |
94 | 94 | "DefaultSelectOption", |
95 | 95 | "TextInput", |
|
106 | 106 | "Modal", |
107 | 107 | "UnknownComponent", |
108 | 108 | "_component_factory", |
109 | | - "InteractionLabel", |
110 | | - "InteractionComponent", |
111 | | - "InteractionSelect", |
112 | | - "InteractionStringSelect", |
113 | | - "InteractionUserSelect", |
114 | | - "InteractionButton", |
115 | | - "InteractionRoleSelect", |
116 | | - "InteractionMentionableSelect", |
117 | | - "InteractionChannelSelect", |
118 | | - "InteractionTextInput", |
119 | | - "InteractionTextDisplay", |
120 | | - "UnknownInteractionComponent", |
| 109 | + "PartialLabel", |
| 110 | + "PartialComponent", |
| 111 | + "PartialSelect", |
| 112 | + "PartialStringSelect", |
| 113 | + "PartialUserSelect", |
| 114 | + "PartialButton", |
| 115 | + "PartialRoleSelect", |
| 116 | + "PartialMentionableSelect", |
| 117 | + "PartialChannelSelect", |
| 118 | + "PartialTextInput", |
| 119 | + "PartialTextDisplay", |
| 120 | + "UnknownPartialComponent", |
121 | 121 | "_interaction_component_factory", |
122 | 122 | "AnyComponent", |
123 | 123 | "AnyTopLevelModalComponent", |
124 | 124 | "AnyTopLevelMessageComponent", |
125 | | - "AnyInteractionComponent", |
126 | | - "AnyTopLevelModalInteractionComponent", |
127 | | - "InteractionWalkableComponent", |
| 125 | + "AnyPartialComponent", |
| 126 | + "AnyTopLevelModalPartialComponent", |
| 127 | + "PartialWalkableComponent", |
128 | 128 | ) |
0 commit comments