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 0b8922d commit 100126fCopy full SHA for 100126f
discord/commands/commands.py
@@ -647,12 +647,7 @@ def __init__(
647
raise TypeError(f"Expected {minmax_typehint} for max_value, got \"{type(self.max_value).__name__}\"")
648
649
self.autocomplete = kwargs.pop("autocomplete", None)
650
- if (
651
- self.autocomplete and
652
- not asyncio.iscoroutinefunction(self.autocomplete)
653
- ):
654
- raise TypeError("Autocomplete callback must be a coroutine.")
655
-
+
656
def to_dict(self) -> Dict:
657
as_dict = {
658
"name": self.name,
0 commit comments