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 3a82843 commit 25fbd2aCopy full SHA for 25fbd2a
discord/ui/modal.py
@@ -178,7 +178,7 @@ def add_item(self, item: ModalItem) -> Self:
178
if len(self._children) > 5:
179
raise ValueError("You can only have up to 5 items in a modal.")
180
181
- if not isinstance(item, (Item,)):
+ if not isinstance(item, (Item, InputText, )):
182
raise TypeError(f"expected Item, not {item.__class__!r}")
183
184
self._children.append(item)
0 commit comments