Skip to content

Commit 496ec39

Browse files
authored
fix: bug can't use list with components in disable_components (#1218)
1 parent 6ea3919 commit 496ec39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interactions/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def disable_components(
232232
elif isinstance(components, list):
233233
if not all(
234234
isinstance(component, (Button, SelectMenu)) for component in components
235-
) or not all(isinstance(component, (ActionRow, Component)) for component in components):
235+
) and not all(isinstance(component, (ActionRow, Component)) for component in components):
236236
raise LibraryException(
237237
12,
238238
"You must only specify lists of 'Buttons' and 'SelectMenus' or 'ActionRow' and 'Component'",

0 commit comments

Comments
 (0)