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.
disable_components
1 parent 6ea3919 commit 496ec39Copy full SHA for 496ec39
interactions/utils/utils.py
@@ -232,7 +232,7 @@ def disable_components(
232
elif isinstance(components, list):
233
if not all(
234
isinstance(component, (Button, SelectMenu)) for component in components
235
- ) or not all(isinstance(component, (ActionRow, Component)) for component in components):
+ ) and not all(isinstance(component, (ActionRow, Component)) for component in components):
236
raise LibraryException(
237
12,
238
"You must only specify lists of 'Buttons' and 'SelectMenus' or 'ActionRow' and 'Component'",
0 commit comments