Skip to content

Commit acf24bd

Browse files
committed
feat: support people adding components as list
1 parent 20d4245 commit acf24bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

interactions/models/discord/modal.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,6 @@ def add_components(self, *components: InputText) -> None:
163163
Args:
164164
*components: The components to add.
165165
"""
166+
if len(components) == 1 and isinstance(components[0], (list, tuple)):
167+
components = components[0]
166168
self.components.extend(components)

0 commit comments

Comments
 (0)