From bd402b486cc12f0c1bf7377fd65f2fe0a8fabd73 Mon Sep 17 00:00:00 2001 From: Akai <93782497+AmazingAkai@users.noreply.github.com> Date: Sat, 27 Jan 2024 07:26:02 +0530 Subject: [PATCH] Correct typo in error message: "error" to "autocomplete" --- discord/app_commands/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/app_commands/commands.py b/discord/app_commands/commands.py index 6c2aae7b8..6f46fbe4c 100644 --- a/discord/app_commands/commands.py +++ b/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]