Skip to content

Commit 100126f

Browse files
committed
Sync autocomplete is allowed now
1 parent 0b8922d commit 100126f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

discord/commands/commands.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -647,12 +647,7 @@ def __init__(
647647
raise TypeError(f"Expected {minmax_typehint} for max_value, got \"{type(self.max_value).__name__}\"")
648648

649649
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-
650+
656651
def to_dict(self) -> Dict:
657652
as_dict = {
658653
"name": self.name,

0 commit comments

Comments
 (0)