Correct typo in error message: "error" to "autocomplete"

This commit is contained in:
Akai
2024-01-26 20:56:02 -05:00
committed by GitHub
parent a9ff58724b
commit bd402b486c
+1 -1
View File
@@ -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]