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 712cd3c commit ef78980Copy full SHA for ef78980
discord/ui/label.py
@@ -108,8 +108,8 @@ def set_item(self, item: ModalItem) -> Self:
108
raise TypeError(f"expected ModalItem not {item.__class__!r}")
109
if isinstance(item, InputText) and item.label:
110
raise ValueError(f"InputText.label cannot be set inside Label")
111
- if self.view:
112
- item._view = self.view
+ if self.modal:
+ item._modal = self.modal
113
item.parent = self
114
115
self.item = item
0 commit comments