[commands] Document that cog_command_error must be async
This commit is contained in:
parent
6e8d538f09
commit
4e6942194f
@ -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
|
||||
-----------
|
||||
|
Loading…
x
Reference in New Issue
Block a user