We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ca373a commit 0acb103Copy full SHA for 0acb103
discord/ui/view.py
@@ -127,14 +127,13 @@ def _component_to_item(component: Component) -> Item[V]:
127
128
return Container.from_component(component)
129
if isinstance(component, ActionRowComponent):
130
- # Handle ActionRow.children manually, or design ui.ActionRow?
+ from .action_row import ActionRow
131
132
- return component
+ return ActionRow.from_component(component)
133
if isinstance(component, LabelComponent):
134
- ret = _component_to_item(component.component)
135
- ret.label = component.label
136
- ret.description = component.description
137
- return ret
+ from .label import Label
+
+ return Label.from_component(component)
138
return Item.from_component(component)
139
140
0 commit comments