mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-08 04:38:42 +00:00
Correct typo in error message: "error" to "autocomplete"
This commit is contained in:
parent
a9ff58724b
commit
bd402b486c
@ -1068,7 +1068,7 @@ class Command(Generic[GroupT, P, T]):
|
|||||||
|
|
||||||
def decorator(coro: AutocompleteCallback[GroupT, ChoiceT]) -> AutocompleteCallback[GroupT, ChoiceT]:
|
def decorator(coro: AutocompleteCallback[GroupT, ChoiceT]) -> AutocompleteCallback[GroupT, ChoiceT]:
|
||||||
if not inspect.iscoroutinefunction(coro):
|
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:
|
try:
|
||||||
param = self._params[name]
|
param = self._params[name]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user