Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion interactions/models/internal/application_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ def wrapper(func: AsyncCallable) -> ComponentCommand:
return ComponentCommand(name=f"ComponentCallback::{custom_id}", callback=func, listeners=custom_id)

custom_id = _unpack_helper(custom_id)
if not all(isinstance(i, re.Pattern) for i in custom_id) or all(isinstance(i, str) for i in custom_id):
if not (all(isinstance(i, re.Pattern) for i in custom_id) or all(isinstance(i, str) for i in custom_id)):
raise ValueError("All custom IDs be either a string or a regex pattern, not a mix of both.")
return wrapper

Expand Down