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 785a357 commit e0c86cfCopy full SHA for e0c86cf
discord/ui/modal.py
@@ -243,7 +243,9 @@ def add_item(self, item: Item[M]) -> Self:
243
raise ValueError("You can only have up to 5 items in a modal dialog.")
244
245
if not isinstance(item, (InputText, Select, TextDisplay)):
246
- raise TypeError(f"expected InputText, Select, or TextDisplay, not {item.__class__!r}")
+ raise TypeError(
247
+ f"expected InputText, Select, or TextDisplay, not {item.__class__!r}"
248
+ )
249
if isinstance(item, (InputText, Select)) and not item.label:
250
raise ValueError("InputTexts and Selects must have a label set")
251
0 commit comments