diff --git a/discord/ext/commands/cog.py b/discord/ext/commands/cog.py index fc4d43e21..5c81e4a5a 100644 --- a/discord/ext/commands/cog.py +++ b/discord/ext/commands/cog.py @@ -312,14 +312,14 @@ class Cog(metaclass=CogMeta): return True @_cog_special_method - def cog_command_error(self, ctx, error): + async def cog_command_error(self, ctx, error): """A special method that is called whenever an error is dispatched inside this cog. This is similar to :func:`.on_command_error` except only applying to the commands inside this cog. - This function **can** be a coroutine. + This **must** be a coroutine. Parameters -----------