Browse Source
Correct typo in error message: "error" to "autocomplete"
docs/guide
Akai
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
discord/app_commands/commands.py
|
|
@ -1068,7 +1068,7 @@ class Command(Generic[GroupT, P, T]): |
|
|
|
|
|
|
|
def decorator(coro: AutocompleteCallback[GroupT, ChoiceT]) -> AutocompleteCallback[GroupT, ChoiceT]: |
|
|
|
if not inspect.iscoroutinefunction(coro): |
|
|
|
raise TypeError('The error handler must be a coroutine.') |
|
|
|
raise TypeError('The autocomplete callback must be a coroutine function.') |
|
|
|
|
|
|
|
try: |
|
|
|
param = self._params[name] |
|
|
|