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 25fbd2a commit 3ee00e0Copy full SHA for 3ee00e0
discord/ui/modal.py
@@ -178,7 +178,13 @@ 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, InputText, )):
+ if not isinstance(
182
+ item,
183
+ (
184
+ Item,
185
+ InputText,
186
+ ),
187
+ ):
188
raise TypeError(f"expected Item, not {item.__class__!r}")
189
190
self._children.append(item)
0 commit comments